Adding images via FTP

fingery
fingery's picture

Joined: 2003-03-15
Posts: 38
Posted: Wed, 2003-04-09 18:32

Guys,

I'd like to host some video on my gallery as well as images.

My host has the max PHP upload size at 2MB so i can't upload via the "add photos" form. It also doesnt work if upload them via FTP them use the option to import via ftp/http from the local server as i get loads of out of memory errors.

I can FTP the movies up to the server. Is there any way i can then get them into the gallery without having to use the add photos form. Even a manual sort of hack?

Thanks in advance.

Chris

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Thu, 2003-04-10 17:36

Well, you can use the local upload form, but modify the save_photo.php file
or whichever it's called and rename move_uploaded_file to fs_copy to try
to bypass the upload restriction.

 
nukestud
nukestud's picture

Joined: 2003-03-25
Posts: 114
Posted: Tue, 2003-04-15 17:08

Just Create a .htaccess file or if you already have one add the folowing to the file.

php_value post_max_size 50971520
php_value upload_max_filesize 50971520

That's for 50mb I just did a 30mb zip and it worked fine!

You can FTP all your files to the server then click on add photos and scroll down to "FTP images to a directory on your server then provide that path here! " then you can put the url or path to the folder and off you go.

Hope all this helps

 
fingery
fingery's picture

Joined: 2003-03-15
Posts: 38
Posted: Tue, 2003-04-15 21:20

Thanks for the idea nukestud but it didnt work :???:

The only .htaccess file i have is in the gallery root....it's empty. Is this normal?

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Tue, 2003-04-15 21:49

No, it's not supposed to be blank. Try rerunning the config wizard and see if it gets something in it...

 
fingery
fingery's picture

Joined: 2003-03-15
Posts: 38
Posted: Tue, 2003-04-15 21:55

I didnt think it was normal...

My gallery is in the root of my web if that makes a difference... ie. / not /gallery

The only .htaccess files i can see are in the root which is blank and another in /albums/.users which just contains an allow/deny statement.

I've reran the config with no problems. Also, all the permissions on my gallery seem to work fine