forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: dbasulto on November 14, 2005, 11:30:34 pm

Title: FTP Upload of big files
Post by: dbasulto on November 14, 2005, 11:30:34 pm
Hi,

i'd like a feature that could enable an ftp based upload of big files (bigger than the max amount of MB to be sent over php, set in php.ini which cant be changed in mosts hostings). Like, in the URI space to enter a file, an automated "ftp" line that lets you choose a file, then uploads it by ftp (using php ftp features) using a given user/pass/temp dir, and it internally adds it as an URI file, so it gets processed in CPG. It's like a bypass using URI upload for big files with FTP. Because, as of now, i do that. Use my hosting ftp acc, upload the big file, then enter the URI for it. The problem is that when allowing users to upload files, i cant disclose the hosting ftp info. So i tougth that a plugin could do that, but better if its native supported on CPG 1.4 ;)
Title: Re: FTP Upload of big files
Post by: Joachim Müller on November 14, 2005, 11:39:48 pm
Why don't you FTP-upload plus batch-add, which is the recommended method for coppermine gallery admins?
Title: Re: FTP Upload of big files
Post by: dbasulto on November 15, 2005, 02:58:35 am
that option sounds right, it's an OK method for what i'm doing now. but what if you have several users that require to upload big files? i have 2-3 users, so im handling that myself, but it'd be nice in future versions to let each user do it that way. I just like to point this out as a possible feature for next releases, in case it makes sense to cover a wider range of "weird" uses ;)
Title: Re: FTP Upload of big files
Post by: kegobeer on November 15, 2005, 03:01:40 am
Allowing guests to have FTP access begs for trouble.  This isn't an option we are considering.
Title: Re: FTP Upload of big files
Post by: dbasulto on November 15, 2005, 03:28:49 am
Allowing guests to have FTP access begs for trouble.  This isn't an option we are considering.

but what if they never use the ftp info? it does it internally? or using php ftp functions could be exploited?

there's a [ulr=http://www.azlankasim.net/?p=10l]wordpress plugin[/url] like that
Title: Re: FTP Upload of big files
Post by: Nibbler on November 15, 2005, 03:38:10 am
You can't use the php ftp function to do that, it's not how they work. The script you mention is just a standard HTTP upload that then FTPs the file somewhere once it has been uploaded to the server. You can't get around the limitations of HTTP upload using either of the methods you suggest.
Title: Re: FTP Upload of big files
Post by: dbasulto on November 15, 2005, 03:41:45 am
ok, so the only way around would be upload by ftp and then use URI upload (or batch add by admin)? ;)
Title: Re: FTP Upload of big files
Post by: Nibbler on November 15, 2005, 03:45:01 am
Use batch add. Using URL upload for files that are already on the server is just silly.