Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [apexinputfile]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
55 views

InputField can't be used with a commandButton that use rerender

apex:inputFile can not be used in conjunction with an action component, apex:commandButton or apex:commandLink that specifies a rerender or oncomplete attribute. This is the message I get when I press ...
Alexis's user avatar
  • 129
0 votes
0 answers
116 views

inputFile causing unauthorized error on sites page

I have a site that I want to use to upload files to users accounts. I already have the site up and running and it can push data into salesforce and create records. I am now trying to use an apex:...
Joe Hayes's user avatar
  • 372
1 vote
1 answer
347 views

How to insert attachment using transient variable

I am using the transient keyword to allow users to upload files greater than 135kb (viewstate limit) on a VF page however since the transient keyword doesn't transmit the attachment past the view ...
SpicyPat's user avatar
1 vote
0 answers
232 views

Unable to use rerender and oncomplete with apex:input file

I have checked that apex:inputfile does not work with rerender and oncomplete tags of action function. But I have seen there are some workaround. I tried using action region around other content, like ...
Pankaj Andhale's user avatar
1 vote
1 answer
570 views

Visualforce error on rerender with inputfile

I have a VF page where I upload a .csv file and display the columns on the page in a table. It all works fine if I don't try and add a spinner, which requires me to rerender the page. If I don't use ...
Irene's user avatar
  • 1,839
1 vote
1 answer
397 views

Wrapper class data is not showing up in pageblock table after commandbutton action

Im having trouble getting a list from my wrapper class to show up in a page block table after clicking a command button. Can someone tell why my wrapper class is not showing up in the table? Is the ...
Matt P's user avatar
  • 13
0 votes
1 answer
1k views

Apex:inputfile customize

Im trying to display the uploaded image name for the apex:inputfile. I think i need to modify my controller to add the display action,but dont know how to do it,any ideas? <apex:page > <...
Dead_end_Developer's user avatar
0 votes
0 answers
85 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 ...
user62694's user avatar
0 votes
1 answer
499 views

Select picklist value on File upload

Is it possible to create a Lightning Component that allows the user to upload a File and then select a picklist option to categorize that file? For example - http://sfdcmonkey.com/2017/09/25/file-...
Brandon's user avatar
0 votes
1 answer
86 views

Is it possible when adding an inputfile to show the filesize as text

I have a simple inputfile tag. Is it possible to to show the filesize after selection Visualforce <apex:inputFile id="inputfile" value="{!newAtt.body}" filename="{!newAtt.name}"/><br/> ...
Thomas's user avatar
  • 2,298
0 votes
1 answer
63 views

Is it possible to bind filename with javascript on apex repeat?

I have a simple apex repeat with add filename tag. When I add the following line "inputfile" the previous line shows no file chosen. Is it possible to bind the filename with the inputfile button with ...
Thomas's user avatar
  • 2,298
0 votes
2 answers
433 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 ...
DCBoy's user avatar
  • 901
0 votes
1 answer
518 views

unable to add files with apex:inputFile using apex:repeat

public with sharing class SendEmailMultipleAttachments { public List<Attachment> attachList{get;set;} public List<SelectOption> numberList{get;set;} public String emailValue{...
Ayaan's user avatar
  • 38
2 votes
2 answers
4k views

Disable inputField conditionally

As the apex:inputField doesn't support disabled attribute (but apex:inputText does), I was using arbitrary attribute html-disabled to accomplish this. But, I was wondering if we can add a condition or ...
Seesh's user avatar
  • 754
0 votes
1 answer
157 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 ...
Json's user avatar
  • 1,617
1 vote
1 answer
2k views

Lightning Design for Apex:inputFile

I am seeking to make a VF page using SLDS including the . Below is how the documentation has the file upload element. <div class="slds-form-element"> <span class="slds-form-element__label"...
MDB68's user avatar
  • 13
0 votes
1 answer
79 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 ...
Hans Donkersloot's user avatar
1 vote
0 answers
1k 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 ...
apn's user avatar
  • 1,722
1 vote
1 answer
6k views

Passing parameters from a Test Class into an APEX Class that is called on a Visualforce page

I am creating a simple project to learn Salesforce and APEX. Currently, I am taking in a file that the user uploads, parsing it, and reading it line by line to check for a particular value, and then ...
James McCreary's user avatar
0 votes
1 answer
2k views

InputFile and Rerendering Issue

I am a new developer staffed on a Salesforce project. I am currently developing a custom app just to become familiar with APEX. Right now, I have an "Upload" file button that reads a file provided by ...
James McCreary's user avatar
0 votes
1 answer
353 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:...
Prady's user avatar
  • 12.3k
0 votes
2 answers
11k views

Uploading an attachment using inputfile tag

I am trying to create a VF page using which I can attach files and save it to notes and attachment object. I am almost close but there is some problem with the code. I am using input file tag to get ...
SfdcBat's user avatar
  • 4,811
1 vote
1 answer
2k views

Can I access the content-type form a blob/inputFile?

I'm writing a component to upload some files to AWS/S3. How can I detect the content-type of the upload form inputFile or from a Blob of the file in Apex? req.setHeader('Content-type', ...
t56k's user avatar
  • 853
2 votes
1 answer
497 views

facing problem with apex:inputFile component

I have used a apex:inputfile component and I have a button "Add more attachments" in my vf page. When I attach a file and click the add button, the attached file is gone. The page is reloaded ...
Seshu Paturu's user avatar
4 votes
2 answers
2k views

Get details of Image selected from <apex:inputFile>

I want to get the details of the uploaded image To choose Image I am using following code in VF <div class="form-group"> <label class="lbl">Image</label> <apex:inputFile value="...
SFDC shaikh's user avatar
0 votes
1 answer
309 views

Attach More Files: Rerender Clears Selection

When am trying to click on Attach Another file button ,selected file on first input file is getting null. Here is the code. public class SamplePageController{ public List<Attachment> ...
sfdc's user avatar
  • 13.7k
3 votes
2 answers
2k views

Issue while uploading CSV file with embedded comma within column

I am uploading CSV file using <apex:inputfile> in vf page. CSV file contains 4 columns. Scenario 1) When I try to upload a file without comma in any column, It gets uploaded without any error....
SfdcPro's user avatar
  • 217
-1 votes
3 answers
2k views

show error message in Visualforce page if no file was uploaded by user

I have a form in my Visualforce page with an inputFile tag. If the user clicks the submit button without choosing a file i want to display an error message and force him to choose a file from his ...
ihssan's user avatar
  • 488
1 vote
1 answer
2k views

apex:inputFile can not be used in conjunction with an action component

I am getting the below error while saving the data. Please let me know where i am doing wrong - apex:inputFile can not be used in conjunction with an action component, apex:commandButton or apex:...
sfdc_to_learn's user avatar
2 votes
1 answer
629 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="...
miku's user avatar
  • 1,761
1 vote
0 answers
2k 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(...
Jose Gallego's user avatar
1 vote
1 answer
852 views

apex:inputFile Error actionRegion tag not resolving issue

Can some one please let me know why I am getting this error here? <apex:page controller="abc"> <apex:form> <apex:actionFunction name="addRow" action="{!addRow}" reRender="...
Testing_SFDC's user avatar
  • 2,940
0 votes
2 answers
152 views

Render condition

Can someone please let me know what is my error here in the render condition? rendered="{!IF(AND(Counting != 0,Inquiry=='Inquiry'),true,false)}" Please note Inquiry is a param value set in apex page ...
Testing_SFDC's user avatar
  • 2,940
1 vote
1 answer
564 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 ...
Chakry Bellamkonda's user avatar
1 vote
0 answers
192 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 ...
akash's user avatar
  • 937
3 votes
2 answers
4k views

Limit file size apex:inputFile

Situation I've implemented a simple VF form: <apex:form> <apex:inputFile value="{!aFile}" /> <apex:commandButton value="send" action="{!upload}" /> </apex:form> ...
Christian Deckert's user avatar