Questions tagged [apexinputfile]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
22 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 ...
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
1answer
127 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 > <...
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
1answer
33 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-...
0
votes
1answer
24 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/> ...
0
votes
1answer
43 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 ...
0
votes
2answers
133 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
304 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{...
1
vote
2answers
2k 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 ...
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 ...
1
vote
1answer
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"...
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 ...
1
vote
1answer
515 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
848 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
1answer
3k 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 ...
0
votes
1answer
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 ...
0
votes
1answer
92 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:...
0
votes
2answers
8k 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 ...
1
vote
1answer
1k 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', ...
2
votes
1answer
421 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 ...
3
votes
2answers
928 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="...
0
votes
1answer
263 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> ...
3
votes
2answers
716 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....
-1
votes
3answers
1k 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 ...
1
vote
1answer
1k 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:...
2
votes
1answer
467 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
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
739 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="...
0
votes
2answers
140 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 ...
1
vote
1answer
437 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
140 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 ...
3
votes
2answers
3k 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> ...