uploads over 700kb not working

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

Post Reply
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

uploads over 700kb not working

Post by phpScott »

I think this is where I want this message.

I am using a prebuilt file_upload script that does some checking on file types, size, etc...

The error I am getting is that any file over 700kb will not upload. I have gone through the script and have looked to see what size limit the script allows and it is up to 2mb.

The error message comes up in a javascript alert saying "This document contians no data". Apparently it is a firefox error message, but any ideas why it would come up?

Just tried it with IE and it just hangs.

since I have poured over the code and can't see a restriction there and doing a phpinfo() says upload_max_filesize is 2mb anyone have any ideas?
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

post the script
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

I would love to but it is across about 8 pages and 100's of lines of code. I will if you really want. like I said I didn't write it otherwise I could probably figure it out. the script comes from the cms for FCKeditor.

The question is more is there something on the server that could cause firefox to come up with "This document contains no data" or what might be happening?
Last edited by phpScott on Tue Apr 19, 2005 4:37 am, edited 1 time in total.
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

you have an upload system that goes over 8 pages???

you could write your own upload script with error handling with full features (automatic filename generator etc) in about 80 - 120 lines

i suggest you write your own, its not difficult and then you will know exactly what its doing
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

I have in the past but the company I'm working for use a cms system that has file upload support. I would prefer to code my own but i'm saddled with what i've got.

no worries im about to use my own really simple one to see if it is a server of code problem.
Post Reply