View Full Version : zipped files
hearts
02-19-1999, 11:19 AM
I have a question.
With zipped cgi files and text.. I wanted to upload them on the server to set aside. Do you upload them in ASCII mode or binary. *keeping in mind* these are zipped*
Does it have an effect on the unzipping program if they are sent up in ASCII Mode.. or does it affect the files if you upload them in Binary?
meikel
02-19-1999, 02:57 PM
Only upload textfiles in ASCII mode.
CGI-Scripts are in fact ascii textfiles (just another file-extension but...)
If you upload a zipfile in ASCII mode, you're killing 1/8 of the file making the zip totally unusable. A zipfile needs all 8 transfer bits in contrast to textfiles that only use 7 transfer bits.
Meikel
Justin
02-19-1999, 03:30 PM
Yes, a zip file goes in binary. However, if the files inside the zip file are Windows format, and you unzip them on the server, they will be full of carriage returns... so I suggest downloading it, unzipping it locally, then reuploading the ascii files separately.
------------------
Justin Nelson, SFE Inc.
http://www.vdj.net
meikel
02-19-1999, 04:19 PM
Hi,
FQ has an unzip on the server that has some interesting switches.
-a auto-convert any textfiles
-aa treat ALL files as textfiles
I'm not sure if this works, so you should test this before relying on this method.
Meikel
hearts
02-19-1999, 04:44 PM
thank you. I did right then.. i uploaded them in binary.. i asked the question after the fact.. It just didn't seem right to upload them in ASCII mode. All I wanted to do is store them on FQ for later use. http://www.aota.net/ubb/wink.gif
I usually just let the ftp program decide and/or upload in Binary http://www.aota.net/ubb/smile.gif
Deb
I fubared this post by orginally typing ASCII http://www.aota.net/ubb/frown.gif I had typed "upload in ASCII" one too many times today... ooopppssss --- can I blame Sigmund Freud? at any rate .zip does = Binary as you guys have noted http://www.aota.net/ubb/smile.gif
[This message has been edited by Deb (edited 02-19-99).]
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.