Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can zip files be uploaded to a mysql server?

Status
Not open for further replies.

bobrivers2003

Technical User
Oct 28, 2005
96
GB
I have a html form that allows files to be uploaded to a mysql server, max file size 2mb. I have a page that lists all the files as links and when clicked allows the files to be saved or opened.

It works a treat with all types of files and validates if over 2 mb.

However if I try to upload a zip file and then attempt to open it the archive is not recognised.

Is this because zip files cannot be uploaded to the mysql server?
 
What do you mean by uploading files to a MySQL server? Do you mean the contents of the files are stored in binary fields in a database table? MySQL doesn't know or care what is in any such file. However, the website's CGI script could well care.
 
Yes they are stored as blobs on the server.

will post onto the php formum to see if matter can be resolved.

Thanks for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top