Problem uploading images

Locked

Started by ozonlinesales on 10 Nov 2007, 4:39 AM · Views: 1,272

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
10 Nov 2007, 4:39 AM
#1
ozonlinesales avatar

ozonlinesales

New Zenner

Join Date:
Nov 2007
Posts:
15
Plugin Contributions:
0

Problem uploading images

Hey, i know this question has been asked a million times before, but i have looked around and cant find any help for me specific question.

I am trying to upload images to the main directory however when trying to it tells me that it is unable to upload the images.

Below is a screen shot of my server's files. You can see where the permissions is i am unable to change the var directory as it is not underlined.

I am using Plesk for my file server .

I am pretty new to Zen Cart so i'm learning as i go. Is it possible to change the directory where the temp file is saved, because its saying the it cannot save the temp file, due to restrictions.

Am i doing something wrong

10 Nov 2007, 5:01 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Problem uploading images

In your Zen Cart admin, there is a "Version" tab in the upper right corner. Click on it.

Now look for the settings for:

  • file_uploads
  • upload_max_filesize
  • upload_tmp_dir
  • user_dir

What are they?

What is your hosting company telling you about the problems doing uploading via PHP?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

10 Nov 2007, 5:14 AM
#3
ozonlinesales avatar

ozonlinesales

New Zenner

Join Date:
Nov 2007
Posts:
15
Plugin Contributions:
0

Re: Problem uploading images

Thanks for your reply

I have not asked the hosting company about my problems, i though i would rule out my own mistakes first.

In version the File uploads is marked as 'On'
The Max File size is '2M'
Upload_tmp_dir = 'no value'
user_dir = 'no value'

10 Nov 2007, 5:34 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Problem uploading images

You might be able to specify an upload_tmp_dir setting via a custom php.ini file; that way you could set a folder to be writable, and it would use that for doing uploads. Typically the server's "tmp" folder would be used for that purpose.

But, sometimes the hosting company prohibits the use of php.ini overrides.

You've never said what exactly your upload failure error messages were ...

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.