473,385 Members | 1,922 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

HTML FILE UPLOAD VALIDATION

Hi all,

How can we calculate and send a checksum of a file we are uploading
via HTML FORM? I suspect we cannot do it in JavaScript because it does
not have access to the file for security reasons. Is there a way to
force the browser to do the checksum (CONTENT-MD5 header, perhaps?)?

Also, is there ANY inherent guarantee (protocol-level implenetation)
that the file arrived at the server without corruption?
Thanks!
Jul 20 '05 #1
2 3661
Alejandrina wrote:
...
Also, is there ANY inherent guarantee (protocol-level implenetation)
that the file arrived at the server without corruption?


No guarantees, but ... have you considered the use of SSL or PGP?

--
William Tasso - http://WilliamTasso.com
Jul 20 '05 #2
In article <2a*************************@posting.google.com> , one of infinite monkeys
at the keyboard of ap*****@iname.com (Alejandrina) wrote:
Hi all,

How can we calculate and send a checksum of a file we are uploading
via HTML FORM?
Can't.

A signed Java applet could do the job if your users will accept it.
But if it's a WWW audience, you'd be better off supplying a separate
form for the user to enter a checksum, and offering instructions for it.
I suspect we cannot do it in JavaScript because it does
not have access to the file for security reasons.
Yep, security is the issue with any technique.
Is there a way to
force
No.
the browser to do the checksum (CONTENT-MD5 header, perhaps?)?


Ah. That would be legitimate. You could perhaps offer browser patches
and/or write to browser developers. You'd still have to explain about
the patches to your users. We have folks on ciwah who could hack it for
(at least) Mozilla and MSIE.

--
Nick Kew

In urgent need of paying work - see http://www.webthing.com/~nick/cv.html
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Prakash | last post by:
Hi, We face problems uploading excel (with macros) documents using HTML File Upload. The file contents are corrupted while viewing the same. However, we are able to upload excel (w/o. macros)...
2
by: DA | last post by:
Hello, I'm hoping someone can help me here. I've got a form that when placed on a server running HTTPS, I get an "access denied" error in IE 6 (non-SP2 and SP-2) when a user tries to upload an...
6
by: Chris Cox | last post by:
I'm trying to put together a simple access database that will allow a friend to maintain a simple database of products/pictures/prices, which he can then export to html and upload to a website. ...
3
by: jhanzl | last post by:
All - I am looking into a way of uploading just the first portion of a large (> 100M) .csv (text) file to the server. Ultimately what I want to do is read the first line of the .csv file, which...
6
by: tshad | last post by:
I have an upload file input as: <input id="MyFile" style="width:300px" type="File" runat="Server"> This works fine, but I find that if my page doesn't pass validation during postback, the page...
0
by: Webmills | last post by:
Hi I have a form containing a File Upload Control, Required Field Validator (connected to the file upload control) RegularExpressionValidator (connected to the file upload control,...
3
by: LisaBigJax | last post by:
I am utilizing the ASP.net FileUpload control to upload a file. After upload, if a user tries to delete the file, I get the dreaded The process cannot access the file...
10
by: NikitaTheSpider | last post by:
Hi all, I would like to announce the alpha release of a service that does bulk/batch HTML validation, link checking and more. During alpha testing, the service is free -- I need people to try this...
2
by: robert112 | last post by:
This is quite a hard one guys. ***Some necessary back ground Info*** I have an asp.net 1.1 application that uses a WYSIWYG to return some html created by the user in the admin section of the...
3
by: underground | last post by:
I have a script that I have modified to upload image to mysql but I am concerned about the security risk envovled with allowing user to upload files to a mysql.. I've been trying to modify the php...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.