PDA

View Full Version : Upload Help Please


Mangowarrior
29th of January 2004 (Thu), 12:54
First, thanks to Pekka for an outstanding program. Looking forward to future releases.

All functions are running with no problem for me. However, there seems to be a restriction on the upload as to total size. I have a considerabe number of files in Imatch that I would like to display. I have no problem in ftp'ing to the "Upload" directiory in EE.

However, selecting the files within EE and then "Upload" I get the following in the ftp messages after about 10 or so files are processed into the 3 selected sizes, (I have also tried just selecting 2 sizes):
msg 34650 | ftp
89_Scot87.jpg: UPLOAD ERROR. Reason: ftp_put: /public_html/gallery/photos/normal/89_Scot87.jpg: Disk quota exceeded

I have upload in increments of 10, 20 files, average size per file 250KB and get the same error messages. If I reduce down to a total upload of 2-3MB -No problem.

My Sys. Admin. does not think this is a server side problem. I have 900MB allocated to me.

Does the line in the Upload module, "Maximum send size in your PHP setup is currently set to 2M/batch" apply? Is this a user setting in an .ini file? I am not conversant with PHP but I can get this changed with no problem if this is the cause.

Sorry to be so long winded, but the thought of only being able to upload 5 files at a time is daunting.

Very much appreciate any help on this.

Pekka
29th of January 2004 (Thu), 13:13
First, thanks to Pekka for an outstanding program. Looking forward to future releases.

Me too :)

All functions are running with no problem for me. However, there seems to be a restriction on the upload as to total size. I have a considerabe number of files in Imatch that I would like to display. I have no problem in ftp'ing to the "Upload" directiory in EE.

However, selecting the files within EE and then "Upload" I get the following in the ftp messages after about 10 or so files are processed into the 3 selected sizes, (I have also tried just selecting 2 sizes):
msg 34650 | ftp
89_Scot87.jpg: UPLOAD ERROR. Reason: ftp_put: /public_html/gallery/photos/normal/89_Scot87.jpg: Disk quota exceeded

I have upload in increments of 10, 20 files, average size per file 250KB and get the same error messages. If I reduce down to a total upload of 2-3MB -No problem.

My Sys. Admin. does not think this is a server side problem. I have 900MB allocated to me.

Perhaps the ftp server has a setting where it stores temp files and that does not have disk space? That message is clearly by ftp server, because there is no such message in EE and EE can not check ftp space remotely. It could also be that PHP ftp module uses temporary folder for ftp transfers and that folder is full. My own ftp code bypasses all that, coming soon.

Does the line in the Upload module, "Maximum send size in your PHP setup is currently set to 2M/batch" apply? Is this a user setting in an .ini file? I am not conversant with PHP but I can get this changed with no problem if this is the cause.

The 2M applies only to files uploaded though WWW headers - e.g. like the top form on upload page does.

Mangowarrior
29th of January 2004 (Thu), 13:32
Many thanks Pekka for the prompt reply. I will confront my Sys. Admin. with your comments. :wink:

Mangowarrior
29th of January 2004 (Thu), 13:54
Hi Pekka,

Further to your reply on this problem, my Sys. Admin. wants me to ask you:

"Our PHP4 installation runs in CGI mode using suexec, so it runs as the web site owner's user account. Ask if FTP mode can be turned off and the files modfied/moved around directly? It should be possible under our setup."

If you would be so good as to answer this I will pass it on.
Many thanks.

Pekka
31st of January 2004 (Sat), 12:15
Hi Pekka,

Further to your reply on this problem, my Sys. Admin. wants me to ask you:

"Our PHP4 installation runs in CGI mode using suexec, so it runs as the web site owner's user account. Ask if FTP mode can be turned off and the files modfied/moved around directly? It should be possible under our setup."

If you would be so good as to answer this I will pass it on.
Many thanks.

As reported the ftp does work when uploaded amount is less that 3MB. When ftp (=PHP) saves files the action is passed "through" suexec and in this case it is quite clear suexec limits the amount to be saved in some way. Aren't there any disk quota settings in suexec configuration?

FTP uploading works in safe mode without any folder chmodding, and uses ftp server's chmod settings when saving files. If one want to use some alternate upload method, EE already has manual input system.