Skip to main content
Solved

Check on size upload files


Forum|alt.badge.img+13

Hi all,

Does anyone know how to check the filesize of a file which is uploaded as document.
Many company’s still have a restriction on the file size of an attachment to be sent to them.
I want to give a warning if the filesize exceeds a specific limit?

 

Best answer by Edwin Saan

I don’t know why but apparently the file_upload is checking the path from… So I’m now able to check the filesize when uploading a file

 

View original
Did this topic help you find an answer to your question?
This topic has been closed for replies.

4 replies

Freddy
Forum|alt.badge.img+16
  • Thinkwise Local Partner Brasil
  • 531 replies
  • June 1, 2022

SQL server has built-in function to read directory contents and show files and their sizes. 

select * from sys.dm_os_enumerate_filesystem('C:\Thinkwise\GUI','*')

 


Forum|alt.badge.img+13
  • Author
  • Sidekick
  • 123 replies
  • June 1, 2022

Thanks, I will try this.


Forum|alt.badge.img+13
  • Author
  • Sidekick
  • 123 replies
  • June 8, 2022

When I do a file upload I cannot use the dm_os_enumerate_filesystem because the GUI is changing the path of the file directly into the ‘to-be-upload’ path.

My file upload has a file location. That’s mandatory on creating the domain.

The @file_upload field is directing to the new path. Not to the path I upload the file from. Since the file is not actually moved yet I cannot use the dm_os_enumerate because the file is not there yet!

I cannot retrieve the path where the file is uploaded from out of the form @parameters. 

Ha any one a suggeston how to fix this?


Forum|alt.badge.img+13
  • Author
  • Sidekick
  • 123 replies
  • Answer
  • June 8, 2022

I don’t know why but apparently the file_upload is checking the path from… So I’m now able to check the filesize when uploading a file

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings