Questions tagged [apexinputfile]

The tag has no usage guidance.

12 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
471 views

rerender input file losing file.?

I am rendering <apex:inputfile> by adding a new row but I am losing file when I click add row button. I am able to add a new row but the path is lost. Please help! <apex:repeat value="...
1
vote
1answer
524 views

apex:inputfile always showing null value first time

I have a VF page which has a opp stage field and if the stage is 70-Won then i am rerendering a panel with which accepts the file. Interestingly the very first time when the output panel is rendered ...
1
vote
0answers
850 views

File upload functionality in Visualforce vs Lightning Component

What is the maximum file upload limit when creating file upload solution in visualforce vs lightning considering governer limits as well. Based on my understanding, Using visualforce max size of ...
1
vote
0answers
1k views

How to test an input file?

I have this controller i want to test: public class SubirCV { public ContentVersion contentToUpload {get;set;} public Id memberId{get; set;} public Blob fileContent {get;set;} public SubirCV(...
1
vote
1answer
439 views

Automatically show the Choose file option/button when a checkbox is selected

Suppose I have one checkbox and one inputfile (Choose File). The idea is whenever I select/check the checkbox (checkbox value=true) then the ChooseFile (inputfile) will be automatically displayed in ...
1
vote
0answers
141 views

Files getting corrupted using apex:inputFile

I am using apex:inputFile to upload documents in a vf page, but sometimes the file is getting saved as .dat file. This is not happening always. I am not rerendering the apex:inputfile and we are not ...
0
votes
0answers
18 views

How to keep old file when click on cancel or choosing wrong file format using <apex:inputFile?

So I have a input file in my visualforce page. The conditions that I have on the file are them not being more than 10MB and of type doc, docx or pdf. The issue I'm facing is that I lose the file ...
0
votes
0answers
25 views

Filetype error in community, only happening in sandbox but not in Production

I am receiving below error when I am trying to upload a .FNM file in my community. No code has been changed but it is working in Production with same code but not in sandboxes, does this have ...
0
votes
2answers
136 views

Prevent access to mobile photo library

my intent is to prevent users from accessing pictures in their camera library of their mobile phone while uploading images to Salesforce. I have run out of luck so thought will check in here to see if ...
0
votes
1answer
101 views

Is it possible to add apex:inputFile dynamically to the DOM during runtime with Javascript?

I can add html elements to the DOM but how do I add a VF element such as apex:inputFile? From this post I understand that I can use a wrapper class and apex:repeat but I was wondering if there is ...
0
votes
1answer
75 views

re-render uninitalizing varriables?

I have a bit of an interesting problem, when I preform a rerender with a command button, variables get unset for some reason. I have a Class named UploadedFile: public with sharing class ...
0
votes
1answer
97 views

Why is my fileupload from VF page showing null?

I am trying to upload a file from VF page and it is always showing null. Here is my code VF Page <apex:form > <apex:pageblock title="Walkthrough Completion"> <apex:...