File document size is displayed as -1 while debugging?

0
Hi All, I have a requirement to calculate the total size of the uploaded document, but I can see that the file size is mentioned as -1, which is strange. Can anyone please quickly tell me what I am doing wrong?    Thanks in advance.
asked
1 answers
1

Hi Satyam,

 

If the file size is -1, there went something wrong with the upload of the file.

Can you please also check the boolean HasContents? If this is false, there is no content uploaded to the entity FileDocument.

Can you please also describe a bit situation what you are trying?

answered