340
Views
5
Comments
how to validate whether the uploaded file is corrupt using file upload widget
Question

Hi All,

How to validate whether the uploaded file is corrupt using file upload widget?

Thanks,

Karthik 

2020-09-11 18-53-44
Stacey Levine

What are you trying to do? The file upload allows up to upload and then do something with the file. There is nothing in it that lets you do a checksum or something else.


Stacey

2018-12-29 06-49-41
Karthik Jeyaraman

Stacey Levine wrote:

What are you trying to do? The file upload allows up to upload and then do something with the file. There is nothing in it that lets you do a checksum or something else.


Stacey

Thanks Stacey

I have a file upload functionality which is currently saving the uploaded file as binary in a entity attribute. This binary is further uploaded into a third party document management system and that system fails to upload few documents stating the document is corrupt. Is there any way to check if the document binary is valid and will not end up with corrupt document ? 


2019-09-24 18-41-25
Jorge Martins
 
MVP

Hi Karthik,

The platform doesn't really know what document you are uploading, or what is a "valid" document... either you have some sort of way to check validity of the document (e.g. a library that has functionality to check the document is not corrupt) that you could use on the Screen Action that handles the upload, or you don't really have much of a choice I believe.

What kind of document is it?

2018-12-29 06-49-41
Karthik Jeyaraman

Jorge Martins wrote:

Hi Karthik,

The platform doesn't really know what document you are uploading, or what is a "valid" document... either you have some sort of way to check validity of the document (e.g. a library that has functionality to check the document is not corrupt) that you could use on the Screen Action that handles the upload, or you don't really have much of a choice I believe.

What kind of document is it?

Thanks Jorge, Uploaded documents can be of file types (image, word doc & pdf). Is there any forge component available to validate files ? 


2019-11-08 16-23-42
César Mateus Conceição

Hi Karthik

Maybe this post can help you out.

CheckSum

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.