Hi,

i am trying to upload file using file upload control.but i am unable to get file size.   currenty i am using   "BinaryDataSize"  

it returns 0 , so please provide me solution regarding this 



SyntaxEditor Code Snippet



SyntaxEditor Code Snippet


Hi Himanshu,

Where are missing a little bit of information here. What type of application are you developing? Can you share some screenshots of your logic?

For Traditional Web you could indeed use the BinaryDataSize action from the BinaryData API.

For Reactive Web, if you want to check the file size before uploading the file to the server, you would need to check the file size at the client side. You can check out this post for some Forge components who can do the client side file size check.

Hope this helps!

Regards,

Nordin

Hi,

i am working on Traditional  web application. i am shearing screenshot of file logic please find the attached file.


Solution

Hi Himanshu,

I have uploaded an example OML file which you can use as a reference.

As you will see from my example, the BinaryDataSize action does return the file size for the selected file from the Upload Widget.

Hope this helps!

Regards,

Nordin

Solution

Ok,

i wll check thanks for your help.


Regards.


Himanshu Verma