Linked Questions
13 questions linked to/from Find size of file behind download link with jQuery
0 votes
1 answer
4k views
How to get file size from url using jquery [duplicate]
<a href="files/doc_downloads/governance_docs/Whistleblower_and_Complaint_Policy.pdf" target="_blank" class="ModuleHeadlineLink"> <span class="ModuleHeadline">Whistleblower and Complaint ...
28 votes
4 answers
28k views
Ajax - Get size of file before downloading
Basically, I want to figure out whether I should download a file using AJAX, depending on how large the filesize is. I guess this question could also be rephrased as: How do I get only the header of ...
14 votes
3 answers
21k views
Get size of file requested via ajax
Here's what I'm hoping to do: I want to send an ajax request to a file (preferably with jQuery), and once the file has been loaded, determine the size of the requested file. After a bit of googling, ...
7 votes
2 answers
16k views
How to access files attribute of a file element using JavaScript
I have in my form an input element with type of file. What I like to do is to check the file size before the element is uploaded for validation issue. By using the majority of primary Web Browsers (...
4 votes
1 answer
8k views
How to get size of uploaded file in IE8,9 using Javascript or jQuery?
I have tried a lot but did not find any way to solve my problem. How to get size of uploaded file in IE8,9 ?
3 votes
1 answer
4k views
Maximum upload file size exceeded is ignored
I'm attempting to upload documents to my server using the technique describe on this blog All has gone well, and I am able to upload documents just fine. The only snag is when I attempt to upload a ...
0 votes
1 answer
2k views
How to find the pdf file size?
I am trying to add pdf file size after download link as in here http://jsfiddle.net/bf4ovzg0/ I have gone through few other stackoverflow solutions. HOwever, I have been unable to get this working. ...
0 votes
2 answers
2k views
How to show linked file size and type in title attributes using jQuery?
For example: Before <a target="_blank" href="http://www.adobe.com/devnet/acrobat/pdfs/reader_overview.pdf"> Adobe Reader JavaScript specification </a> Because the file is PDF the ...
0 votes
1 answer
1k views
Measure size of file uploaded using jQuery in ASP.NET
How to measure file size using jquery,the following code works fine in firefox,chrome but it is not work in IE (7/8/9). Can any one help me how to measure file size in IE var fi = document....
1 vote
1 answer
958 views
Javascript prevent form submit when over limit
I follow the suggestion from Find size of file behind download link with jQuery for the file size checking and added return false; to prevent form submission, but failed. The code as following: ...
0 votes
1 answer
679 views
javascript to determine file size
I tried this but keep getting following error when I put this into a content editor web part. <script type="text/javascript"> var FSO = new ActiveXObject("Scripting.FileSystemObject"); var ...
0 votes
1 answer
258 views
Fileupload - Retrieve File information before file loaded onto the webserver
How can I retrieve file information (size of file) before it is uploaded to the webserver? I would like to create a multi file upload. I have it working in JQuery but I would like to know the size ...
1 vote
2 answers
132 views
How to know the size and file extension?
On the page have a link to the file: <a href="file.doc">File</a> Next to the link should automatically show the extension and file size. Example: File (DOC, 15 KB) How to do it? I found ...