Image Manager Doesnt Upload

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

BTS
Posts: 9
Joined: Fri Dec 09, 2005 10:22 pm

Image Manager Doesnt Upload

Post by BTS » Fri Dec 09, 2005 10:25 pm

I just installed version 1.5.4 of phpmyfaq.

When creating a new record, I click insert image. Image manager appears. I then click browse to find a jpg on my workstation and then upload to upload it to the server.

It says "uploading" but the jpg is never uploaded. I've given full read/write security to the entire FAQ directory.

thanks

jazcyk
Posts: 385
Joined: Wed Sep 07, 2005 1:32 pm

image upload ...

Post by jazcyk » Sat Dec 10, 2005 12:38 am

I really did not know that it could upload! I always uploaded the image in advance with an FTP-client! It works fine as you can see here: http://www.webyog.com/faq/5_71_en.html

But I have another issue: I cannot 'step back' in the folder tree. Let us say that faq root directory is /httpdocs/faq . I can enter an URL like /httpdocs/faq/images/somefile but not /httpdocs/faq/attachements/somefile
or /httpdocs/images (some pictures are not related to the FAQ only but also to program help files etc.) as I would prefer. Also that would keep my own images seperated from the ones that come with the FAQ system.
Also I would sometimes like the image to be fetched from another server (we are operating two of them in each their part of the world)!

All that I can't do from Admin Panel. No problem .. I just use our own excellent database client for editing the HTML, but it is an unnessary restriction with the Admin Panel code, I believe.

matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Re: image upload ...

Post by matteo » Sat Dec 10, 2005 12:51 am

jazcyk wrote:Let us say that faq root directory is /httpdocs/faq. I can enter an URL like /httpdocs/faq/images/somefile but not /httpdocs/attachements/somefile as I would prefer. Simply in order to keep my own images seperated from the ones that come with the FAQ system.
IIRC, this a feature planned in the 1.6.x, not in the very first release.

BTS
Posts: 9
Joined: Fri Dec 09, 2005 10:22 pm

Post by BTS » Sat Dec 10, 2005 12:53 am

hmmm... well then I'm not sure what the purpose of the upload button is??

matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Re: Image Manager Doesnt Upload

Post by matteo » Sat Dec 10, 2005 12:59 am

BTS wrote: It says "uploading" but the jpg is never uploaded. I've given full read/write security to the entire FAQ directory.
Can you check inside your PMFROOT/images if the image you've uploaded is really there? In the Image Manager "big" pictures are presented as filename - filesize and usually this behaviour seems to confuse users.

BTS
Posts: 9
Joined: Fri Dec 09, 2005 10:22 pm

Post by BTS » Sat Dec 10, 2005 1:01 am

nope nothing there and I've even tried uploading very small 4k jpg's

matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo » Sat Dec 10, 2005 1:07 am

BTS wrote:hmmm... well then I'm not sure what the purpose of the upload button is??
It gives the user the possibility of adding images to a faq record. These below are the steps:
1. Open the ImageManager
2. Browse.. for selecting the picture you want to add
3. Click Upload
4. Select the image in the list of the images (you'll see some fields filled with the data related to the selected image)
5. Click OK and the image will appear in the faq record

What kind of picture (=file extension: e.g. PNG) are you tring to upload?

matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo » Sat Dec 10, 2005 1:11 am

BTS wrote:nope nothing there and I've even tried uploading very small 4k jpg's
I've just tested it upon my PMF 1.5.4 with a 133KB JPG. It seems that in your case PHP is not able to upload files on your server.

BTS
Posts: 9
Joined: Fri Dec 09, 2005 10:22 pm

Post by BTS » Sat Dec 10, 2005 1:16 am

Is this a setting I need to change then on my server? I'm not seeing any error messages. I've even gone to the extent of giving "full control" permissions to the internet guest account. I'm not sure what else to try here.

btw. thanks for the quick responses!

matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

PHP Upload

Post by matteo » Sat Dec 10, 2005 1:35 am

Try to check your php.ini for these lines:

Code: Select all

; Whether to allow HTTP file uploads.
file_uploads = On

BTS
Posts: 9
Joined: Fri Dec 09, 2005 10:22 pm

Post by BTS » Sat Dec 10, 2005 5:20 pm

I've checked the php.ini and fileuploads are indeed turned on. Still doesn't work.

matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Need of PMF configuration

Post by matteo » Sat Dec 10, 2005 5:45 pm

Please post you PMF Server configuration: we must investigate more in depth your configuration.

BTS
Posts: 9
Joined: Fri Dec 09, 2005 10:22 pm

Post by BTS » Sat Dec 10, 2005 8:15 pm

phpMyFAQ Version
phpMyFAQ 1.5.4
Server Software
Microsoft-IIS/5.1
PHP Version
PHP 5.0.5
Register Globals
off
Safe Mode
off
Database Client Version
4.1.7
Database Server Version
5.0.15-nt
Webserver Interface
CGI-FCGI

matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo » Sun Dec 11, 2005 1:35 pm

MMhhh.. unfortunately I run PMF on Linux systems and not within PHP 5..x: Thorsten will help us :wink:

I think that we must investigate the upload process within PHP&Windows: an idea would be to check for/set a temp folder within which PHP temporarly store the uploaded files: I'll suggest you to chose a folder, give it full control for IUSR_<machinename>, set the folder into php.ini:

Code: Select all

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =
and restart IIS.

Thorsten
Posts: 14974
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten » Mon Dec 12, 2005 7:47 am

Hi,

I do not have an IIS server... I think that's a IIS configuration problem because I've got no problems with Apache 1.3 and Apache 2.0 on my Windows machines.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Post Reply