Cannot download .rar file from server

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

User avatar
James M.
Forum Contributor
Posts: 119
Joined: Wed Mar 31, 2004 6:41 pm
Location: Tallahassee

Cannot download .rar file from server

Post by James M. »

Hey, i havent been here in a while. I have a .rar file that I put on my server for a friend to upload but for some reason it will only uplaods 696kb but the file is bigger then a GB. Does anyone know what the problem is? I am runnin an apache 2.0 server btw.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

could be script time out, upload time out, size exceeded.. there's mutliple possiblities.
User avatar
James M.
Forum Contributor
Posts: 119
Joined: Wed Mar 31, 2004 6:41 pm
Location: Tallahassee

Post by James M. »

He only uploads for less then a second and it only give him that little chunk of the file. I dont have it on a page, its just a folder and you can see all the files. There is no problem with uplaoding .zip files but .zip files can't hold as much as .rar. Would adding .rar as an application type in apache work?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I don't remember apache caring much about the filetype, unless it's downloading.. and even then, that's just to use a handler or not..
User avatar
James M.
Forum Contributor
Posts: 119
Joined: Wed Mar 31, 2004 6:41 pm
Location: Tallahassee

Post by James M. »

STill confuses me that a .zip file will trnasfer as a file but a .rar file has all that trouble.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

where is this upload happening? from a script? if so, post it.. I'll move the thread.
User avatar
James M.
Forum Contributor
Posts: 119
Joined: Wed Mar 31, 2004 6:41 pm
Location: Tallahassee

Post by James M. »

There is no script all you do is click the link to the files folder and that leads you to a folder, no page, and you see all the files there and just downlaod them. You can just click and download every program type in that folder except .rar files. My friend is downloading off my server which is running off my computer.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

then stop mixing upload and download in your posts, silly. :P :lol:
User avatar
James M.
Forum Contributor
Posts: 119
Joined: Wed Mar 31, 2004 6:41 pm
Location: Tallahassee

Post by James M. »

lol, sorry. So what would usually be the problem when a certain file type cannot be downlaoded correctly from a server?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

not too sure. A handler/type may be intercepting it and truncating the file. There can be a multitude of reasons.. PM me a link to this file and I can check a few things..
User avatar
James M.
Forum Contributor
Posts: 119
Joined: Wed Mar 31, 2004 6:41 pm
Location: Tallahassee

Post by James M. »

Well I am inside a college network and have yet seen anyone outside the network get in so I dont think that will work. Unless you know how to get through.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

ok.. then write a quick script to retrieve the headers sent when that request it made.. that may lead to some details.
User avatar
James M.
Forum Contributor
Posts: 119
Joined: Wed Mar 31, 2004 6:41 pm
Location: Tallahassee

Post by James M. »

All the php i know and I dont know how to do that, or i might know but forgot. Can you explain real quick, Ill most likely catch on an write up a script in a few mins (might be a little rusty since I stopped php so go into 3d for a little bit :) )

edit: BTW i think the sites mailing server is down because I am not getting notifications about replies.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

User avatar
James M.
Forum Contributor
Posts: 119
Joined: Wed Mar 31, 2004 6:41 pm
Location: Tallahassee

Post by James M. »

Here is the header to the file:

Code: Select all

HTTP/1.1 200 OK Date: Mon, 06 Sep 2004 22:39:56 GMT Server: Apache/2.0.48 (Win32) PHP/4.3.7 Last-Modified: Mon, 06 Sep 2004 09:30:24 GMT ETag: "22a73-e905778e-87cb8d20" Accept-Ranges: bytes Content-Length: 3909449614 Content-Type: text/plain; charset=ISO-8859-1
Post Reply