PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old December 28th, 2006, 06:12 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Dec 2006
Location: Australia
Posts: 21
Upload Errors - Invalid File?

I have recently installed vbgallery (v2.1) and everything seems to work fine except for one thing. I cannot seem to upload any large file. I have tried to upload a 1.5mb, 2.3mb and 5mb .jpg files and get the error 'invalid file'. Smaller .jpg files on the other hand go in without a problem.

I have raised the accepted filesize for .jpg and .jpeg from 2.00mb to 9.00. I have tried uploading with both GD and imagemagick and still have the same issue.

I have searched the forums for a solution to my problem without any luck. Any ideas?
pablozed is offline   Reply With Quote
Old December 29th, 2006, 05:14 PM   #2 (permalink)
Registered User
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,244
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
Quote:
Upload Errors
Invalid File
This is an error that may popup when upload_max_filesize, post_max_size is reached set in php.ini, httpd.conf of the webserver.

Take a look in your AdminCP => Maintenance => View PHP info

EX:
- post_max_size : 8M
- upload_max_filesize : 2M

What values do you have ?

Code:
Content visible to verified customers only.
In order to upload large files to your server with PHP, you need to change 2 parameters in php.ini
Code:
Content visible to verified customers only.

This can be done by your host.


----
If your host will not change their settings or you can not wait for their responce.

You can upload large files via. FTP and mass import. The settings for the folder you can upload your images to is set:

AdminCP => vBGallery => Modify Settings => Title, URL's, & Paths

- FTP User Folder Path
The path (NOT the URL!) to your user's upload folder (used for FTP uploads). Ex: /home/yoursite/public_html/gallery/users/userid

After you have uploaded the images via. FTP set a web browser to:
http://www.yourwebsite.com/gallery/upload.php

At the bottem of the page should be:

*Bulk Upload options

- Upload From Server (setting based per usergroup)
[ X ] Upload files directly from the server
Files should be in: /home/yoursite/public_html/gallery/users/1

- Number of files to process at a time
The number of files that you would like to process at a time.

This will process all images in that folder therefore bypassing the php upload / post limit of the server.

Last edited by Zachariah; December 29th, 2006 at 05:27 PM.
Zachariah is offline   Reply With Quote
Old December 29th, 2006, 05:54 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Dec 2006
Location: Australia
Posts: 21
Thanks for your response.

Quote:
EX:
- post_max_size : 8M
- upload_max_filesize : 2M
Yes those are the exact settings in the 'view php info' section. This most likely explains why I cannot upload larger images.

I actually have a php.ini file on the '/' directory of my server although I am not sure if this is the same one that you mention. It doesn't contain the two bits of code that you mention but I could put it in if its the correct php.ini file.

Update:

I added the code into my php.ini file (raised max upload to 10 MB) and it has actually allowed a larger file to go through. So it works, thanks

Last edited by pablozed; December 29th, 2006 at 06:05 PM. Reason: update
pablozed is offline   Reply With Quote
Old March 29th, 2008, 09:34 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Mar 2004
Location: MA
Posts: 170
I know this is old, but a quick trick before you ask the server to increase size is to try the .htaccess method.

In your .htaccess, enter this:

Code:
Content visible to verified customers only.
That in itself will work on most shared servers to increase the max upload size to 10M.

(This can be a reference post for others. lol I use it on my server and it works just dandy.)
iguanairs is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error on upload but not much detail-"Invalid File" devinnull How Do I? - vBulletin 3.5.X 20 September 24th, 2008 06:26 PM
Zip file upload errors duffb Photopost Pro Bug Reports 10 November 18th, 2006 05:24 PM
Server upload error: Invalid File 0ptima Installs and Upgrade - vBulletin 3.5.X 4 May 16th, 2006 07:50 PM
invalid file Kseki Installs and Upgrade - vBulletin 3.5.X 6 April 13th, 2006 08:25 AM


All times are GMT -5. The time now is 07:42 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0