Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having problems uploading a large file to a web site.

When the file is subsequently downloaded it is corrupt.

How can I do a checksum of the file while it is on the web site so I don't have to keep downloading it everytime just to check that it has uploaded properly?

share|improve this question

The easiest way would be to log into the webserver (e.g. using ssh) and do a compare the MD5 sum.

Unless you are using something truly ancient called FTP and transfer binary files in ASCII mode. In that case just type 'bin' in your FTP client to upload them correctly.

(Granted, this is a wild guess. Your question does not mention which software you use to upload).

share|improve this answer
What would you suggest other than FTP to transfer files? – CJ7 Jun 6 '12 at 7:43

You would have to get your client side to also run the checksum algorithm, and that means Javascript. Take a look at this SO question. Once there you'd have to use server-side code to run the checksum there (here's a PHP implementation). The question is a bit open-ended so I'm not really sure if this is what you were looking for. But I don't know that this is possible without programming, so I'm not sure if this question would be more appropriate for SO.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .