is it possible to get file of attachment without using Scripting.FileSystemObject

I

ihsan.malik

I need to check file size in input type=file before calling the submit
method. Files can be of anytime and I want to make sure that size does
not exceed from a certain limit. i have search a lot on internet but no
solution comes without Scripting.FileSystemObject method call which
requires high trust level.
 
T

Tim Slattery

I need to check file size in input type=file before calling the submit
method. Files can be of anytime and I want to make sure that size does
not exceed from a certain limit. i have search a lot on internet but no
solution comes without Scripting.FileSystemObject method call which
requires high trust level.


That's right, you've answered your own question. Client-side
Javascript cannot access the user's file system. There's no way to do
this.

Even server-side, there's no way to know the size of the file before
it's completely uploaded.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top