View Full Version : no file uploaded
Hi!
I installed oscommerce last week and everything was fine until this afternoon.
I added 50 products and suddenly started getting an error "file not uploaded" for any product that I add now.
No changes have been made to the configuration.
I am very new to oscommerce.
would appreciate any help.
tacimala
12-28-04, 02:26 AM
If you don't add a picture then you will get that error. You will also see that error if you update any part of an existing product without also updating the picture. Hope that helps!
I am having the same problem with an OScommerce site that I am making. I am not able to upload Image files. This seem to coincide with an error-warning on powwebs public notice-board about PHP-Uploading....See thread
http://forum.powweb.com/showthread.php?threadid=44687
Anyhelp to resolve this problem will be highly appreciated. Thank you.
Song.
See this announcement (http://forum.powweb.com/showthread.php?t=44687) about the disabling of file uploads by default. To fix this, you need to get a copy of PowWeb's default php.ini (http://support.powweb.com/index.php?category=PHP/MySQL&topic_id=57), edit it as shown in the announcement, and upload it to your htdocs folder.
Thank you Steve for helping out again. By now you should know that you are the Crowned Prince of the United States!!!. :D
67mustang
12-28-04, 09:29 PM
I've copied the text into a plain text file.
I've changed this part:
_____________________
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /www/u/username
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
Please note that if you are uploading files larger than 2MB's you will also need to change upload_max_filesize.
________________________
and uploaded it to htdocs, but I think I have the username wrong. I still get the same error message when I try to upload a file.
In all my notes from setting up this site, I don't have anything that goes /www/u/username. All I have goes /www/m/y/mysite.com.
Is there a particular line in the admin/includes/configure.php file that has the username I need to use? Is there more that I need to change or just /www/u/username?
Thanks for your help.
67mustang
12-28-04, 09:31 PM
And in this line from the thread by James:
"You need to uncomment and edit the upload_tmp_dir variable to point to a directory that is writeable by you ... ."
What does "uncomment" mean?
If your path is of the form /www/m/y/mysite.com, then use that. Older sites use the other format.
Uncomment means to remove the semicolon at the begiinning of the line.
67mustang
12-28-04, 10:14 PM
Hey, it works now! I now have my "coming soon" image in all the right places.
Thanks for the help. Now all I need to do is get some photos of the products and learn how to make a Flash movie to demonstrate the products.
Deskdirect
12-30-04, 11:02 PM
The php.ini sample file contain stuff that I have no idea what the heck it is. I have a photo gallery as well as my OSCommerce catalog that I need to be able to upload photos to.
If the php.ini needs the path to the upload_tmp_dir how do I include both directories?
Please help!
Annette
PHP Stupid :confused:
You create a new "temp" folder just for the php.ini file and point the correct path to it in the "upload_tmp_dir =/www/u/user/temp" line.
Deskdirect
12-30-04, 11:51 PM
Can I just use that peice of the code or do I need to upload the enitre php.ini file with my changes? And where does the file get uploaded to?
You need to use the full php.ini file and it should be uploaded into your htdocs directory (folder). Just insided of your htdocs directory, not inside any other directory.
Deskdirect
12-31-04, 01:35 AM
all I get is this error
FATAL ERROR: register_globals is disabled in php.ini, please enable it!
I made sure all the references to register_globals were set at on - still have the error.
FIXED
I had to save the php.ini file with a PHP Editor instead of notepad.
I have osCommerce and phpBB which both require image uploading. I have changed the php.ini file so that I can upload my products images to my images folder, but how do I allow phpBB to upload images to their designated folder?
You misunderstand the php.ini setting. Thiis is to be a "temporary holding area" into which the files are initially uploaded. PHP will then move the file to wherever you told it to go. You probably would NOT want the tmp_upload_dir to be your images folder.
awesome thnx i got it now
PriceTrim
1-12-05, 03:34 PM
Can some one tell me what part I am doing wrong.
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /www/p/r/mysite.com/temp
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
I didnt change anything besides the upload_tmp_dir line and now it wont even upload the file at all. Before it uploaded most of them but didnt upload others... :confused:
PS - I am using notepad as my editor.
jefreier
1-12-05, 08:14 PM
do u not have an htdocs folder? if you do make it /www/p/r/mysite.com/htdocs/temp
The recommendation is to NOT put the temp folder under htdocs. You really can get away with just making it your package folder, eg. /www/p/r/mysite.com
BTW, PowWeb made a recent change that eliminates the requirement for this php.ini change, but it is still recommended.
PriceTrim
1-13-05, 11:17 AM
Here is what was in the original file.
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /www/p/r/mysite.com
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
Which is why I changed it and added a /temp ...... You can go to http://store.pricetrim.com to see exactly what I mean about the images not uploading correctly. Every time I upload a image it shows it first, in the part where I can hit insert, and then when I click that and go to the products actual page there is no image there. So I am highly confused. Its like its uploading to the temp folder, but not moving it to where it needs to be afterwards? Does that make any sense to any of you?
Thanks for the help, I really appreciate it. I am not very .php or .mysql savy, so I am learning as I go.
I also have the gallery that pow web offers installed. If tha makes any difference. The images dont upload onto that either.
mitchind
1-13-05, 12:20 PM
Try it now - without a custom php.ini
They just removed that requirement early this morning.
I have made a new directory that is not commonly used and made our default php.ini use that, it is no longer required to use a custom php.ini for simple file uploading so I am closing this thread...
It is still recommended for security and reliabitlity reasons to upload your files to a directory only you have write access too.
Try:
1) /www/i/yoursite/htdocs
2) Secondly, try increasing the file upload or image upload size. I had to increase mine from 2MB to 10MB range and it worked. Good luck.
2MB ----> upto 10MB
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.