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

Post by BTS »

It was in fact the "upload_tmp_dir" setting in the php.ini.

Thanks for your help!!
BTS
Posts: 9
Joined: Fri Dec 09, 2005 10:22 pm

Post by BTS »

So it seems to me that the location of the images directory should really be set within the application vs in the php.ini file. Is there a way to do this? Can I add some code to index.php in the faq directory that will do this?
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Sorry... need more explanations

Post by matteo »

Sorry, I'm not quite sure to have really understood your question so let me summarize the picture:
1. By design the images inserted into the PMF server, by means of the Image Manager provided with the WYSIWYG Editor, are saved into the folder:
[PATH_TO_PMFINSTALL/images.
2. It's not so hard to modify the code in order to give to PMF uploaded images a more useful "sandbox" but changes are to be performed in several files.
3. (2.) is under discussion and maybe in PMF 1.6.x there will be a sandbox for those images or maybe in PMF M.m will be stored directly into the database: it's too soon to give a response to this point...
4. In order to be able to upload files under PHP, and let PMF images upload work, there is no need to set the upload_tmp_dir with the path of the folder in which you'd like to save your images. That (optional) setting is internal to PHP for the regular working fo PHP itself: it plays the same role of session.save_path. Under Windows you must create a dedicated folder and give it the Modify right for IUSR_<machinename>.

Said this, your question is:
a. (2.)
b. (4.)
?
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
BTS
Posts: 9
Joined: Fri Dec 09, 2005 10:22 pm

Post by BTS »

Ah ok, it was me that misunderstood. In order to fix my problem I had set the upload_tmp_dir to the actual phpfaq images folder. I see now that this is really just a temp directory that requires write access.

thanks again for your help.
Post Reply