cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Upload PDF fille in Interact form

Anushka2401
Level 2

I'm facing an issue where my Blue Prism Interact form is not allowing .pdf file uploads, even though I've configured the form to accept .pdf files up to 1 MB in size. The file I'm trying to upload is just 281 KB, and I've confirmed it's a valid PDF. I’ve tried re-saving the PDF using tools like Adobe Acrobat, MS Word, and the Print-to-PDF option. I’ve also tried uploading in different browsers (Chrome, Edge), used Incognito mode, cleared browser cache, and ensured there are no security extensions or antivirus software blocking the upload.

On the server side, I verified that .pdf is correctly registered under MIME types in IIS. I’ve edited the appsettings.jsonto set a valid TempFilePath, and gave the Interact App Pool identity write permissions to that path. I also ran iisreset after making the changes. Despite all this, PDF and document uploads still fail, while other file types like .jpeg and .png upload successfully. I even created a brand-new form with just one upload control, allowed all common extensions, and still couldn’t upload a PDF. At this point, everything else works fine, and the issue seems specific to file uploads only.
Please suggest if there is something else that I can try to make it work.

1 BEST ANSWER

Helpful Answers

Hi Anushka

Do you preface the extension with "." in the Accepted extensions field, i.e. ".pdf"? If so, remove it (so it would be "pdf, docx, xlsx, csv, jpg, jpeg, csv"), save the edit and then try using the upload field. 

View answer in original post

4 REPLIES 4

steven.boggs
Staff
Staff

So others can potentially provide a troubleshooting recommendation here, could you please provide more details about what occurs when the upload fails? For example:

  • Are there any error messages shown when the PDF fails to upload?
    • What other "document uploads still fail", i.e. .docx/.xlsx files as well, or just PDFs?
  • What is shown in the Developer Console in the browser (F12) when the PDF fails to upload to the form?
  • Are there any errors/warnings in the Interact logs around the timeframe of attempting to upload this PDF? If so, what are they?
  • Have you ensured '.pdf' is specified in the Upload Capture Type options, with "File" selected as documented here?
  • Have you altered the upload size limit field in either the Interact UI's Create Upload page or the Hub config file located on the server? Note that the value entered in the "Max size" field on the Create upload page cannot surpass the value specified in the configuration file, initially set to 5 MB.
  • Does this form allow other PDFs to be uploaded but not this particular PDF?
  • Do other forms allow PDF uploads but not this form?

Thanks for replying! To answer your questions,

  • Yes, the error message Interact says 'Please select a .pdf, .docx, .xlsx, .csv, .jpg, .jpeg, .csv file upto 1MB in size'
    • I tried to upload .docx and .png, that too failed. However, when I changed the Upload Capture Type to from Files to Images, I was able to upload png and jpeg.
  • The Developer Console in the browser (F12) surprisingly shows nothing on File upload. I see the error on Interact Form but did not see anything on the console.
  • I don't see any errors in the logs at all. Or maybe I missed something, but I didn't see any errors. 
  • I ensured it accepted only .pdf. When that didn't work, I tried with other file types. 
    I altered the size to accept 1 MB. I haven't tried 5 MB.
  • It does not allow uploads of any PDF, Word, Excel document. When I changed the Upload Capture type to Image only then did it accept jpeg and png.
  • I have created a small sample test form that only had the upload capture type field. That form did not accept any PDF uploads either.
    Please let me know if I should try anything.

Hi Anushka

Do you preface the extension with "." in the Accepted extensions field, i.e. ".pdf"? If so, remove it (so it would be "pdf, docx, xlsx, csv, jpg, jpeg, csv"), save the edit and then try using the upload field. 

This worked! Thank you!