Pages:

Images not uploaded

Daniele

No avatar

2004-10-22 18:23

Hi, how are you ? I installed your script and everythings works but not the image upload. It's says everythings ok, no error but not images shown and not images on the /files/products folder

This folder is 777 and I have GD2

Thanks for your help.
Daniele

wewior (OpenSolution)

Avatar: wewior

2004-10-22 18:44

how big image you upload? there are some restrictions

\//\// e \//\// i o r

Daniele

No avatar

2004-10-22 18:53

Hi, really small... I tried 10kb to 200kb, no images uploaded.
But I do not receive any error message.

Daniele

No avatar

2004-10-22 19:40

If I set /files/products chmod 644 I don't receive any error, then I think no files are tried to be copied.

Thanks

Daniele

No avatar

2004-10-22 19:43

And... if I try to upload a new Logo on configuration, says Ok but still here to old one.

Please help me because I would like to use it !

Frank

No avatar

2004-10-22 21:39

Daniele, you need to chmod all the folders under /files/ to 777, in other words; categories, content, img, and products, in order to get the image uploads to work. Hopefully this helps, it sure did the trick for me! :)

Daniele

No avatar

2004-10-23 12:29

Hi Frank, yes, they are 777... still do not upload images !

Help me, please

jojo3ep

No avatar

2004-10-25 20:05

I have the same problem. All files & folder are 777 and no image are stored !!!

jojo3ep

sprocket

No avatar

2004-10-25 21:04

What kind of images files? I think G2 can only process .png and jpeg or jpg.

This program looks for the .jpeg or .jpg extension before it processes.

I wish somebody would go through this program and add error checking, cause it is very poor.

treewood (OpenSolution)

Avatar: treewood

2004-10-25 21:21

png, gif, jpeg, jpg are accepted. possible errors:
- no chmod 777 for directory files and subdirectories
- no library gd2 included to PHP
- image have to big size (over 2000 pixels weight or height)
- images are too big in uploading (limits in php.ini) default is 2 MB
- restrictions (contact with server admin)
- other

witaj.net

wewior (OpenSolution)

Avatar: wewior

2004-10-26 07:03

script accepts gif extension images but thumb created may be wrong because it use jpg library, beacause gif algoritmg is off in gd2 :-(

\/\/ e \/\/ i o r

jojo3ep

No avatar

2004-10-26 07:22

Thanks for help, but I have GD2 available, all files and directories are 777, photo are jpg, maximum 500x400 pixels below 100Ko;
Have ou an other idea ?

jojo3ep

wewior (OpenSolution)

Avatar: wewior

2004-10-26 07:39

some errors are displayed or nothing? try to switch error reporting to E_ALL, maybe that then it display some error

\/\/ e \/\/ i o r

jojo3ep

No avatar

2004-10-26 08:30

Wewior, can you explain me what I have to change and in which file ?
Thanks

jojo3ep

treewood (OpenSolution)

Avatar: treewood

2004-10-26 08:50

in config/general.php uncomment/delete "#" before error_reporting( E_ALL ); its 2nd line in this file

witaj.net

Daniele

No avatar

2004-10-26 09:28

Hi all, It's a php 4.3.3 bug.

In /libraries/FotoJobs.php just delete or comment this code line:

if( is_uploaded_file( $mImgSrc['tmp_name'] ) && is_file( $mImgSrc['tmp_name'] ) && filesize( $mImgSrc['tmp_name'] ) > 0 && $this->checkCorrectFile( $mImgSrc['name'], 'jpg|jpeg|gif|png' ) == true ){

I know it's not the right solution but it works now.

Bye
Daniele

I'm doing the traslation in Italian language.

treewood (OpenSolution)

Avatar: treewood

2004-10-26 09:43

Daniele - are You shure that it's php 4.3.3 bug? we tested it on 4.3.3 too and it works good. maybe some kind of functions have restrictions on Your server? is_file, filesize, is_uploaded_file, or preg_math?

witaj.net

wewior (OpenSolution)

Avatar: wewior

2004-10-26 09:44

i suggest to leave
if( $this->checkCorrectFile( $mImgSrc['name'], 'jpg|jpeg|gif|png' ) == true )

Daniele what bug? whitch function or something? do you know where in php is that bug

jojo3ep

No avatar

2004-10-26 10:38

Daniele or Wewior,
can you cut and paste the complete fotojobs.php in this forum as I have made the corrections and I'am not very good in PHP programation.
Thanks in advance,

jojo3ep

wewior (OpenSolution)

Avatar: wewior

2004-10-26 15:31

daniele try to download latest version of qc, there are some changes in foto jobs, i hope that will work now

\/\/ e \/\/ i o r

Pages:
Back to top
about us | contact