Page 1 of 2

Hi,I cannot up

Posted: 22 May 2008, 02:11
by boby
Hi,
I cannot upload image from frontend ,I get following error :

* Warning! - Failed to change file permissions

Message

* Unable to upload file

In fact the file is on remote FAI server but the galley does'nt seem to see it !
The strangest thing is that it works fine on my labtop with xampp / winXp

help !

maybe there is probl

Posted: 22 May 2008, 13:20
by Jan
maybe there is problem while copying the file from tmp folder to phocagallery folder (if the file has e.g. permissions to 600, some script in Joomla! cannot change the permissions and it returns the error )


Jan

Not really because t

Posted: 22 May 2008, 14:18
by boby
Not really because the file is finally located at the right place on my ISP remote directory (images/phocagallery). Perhaps since permissions cannot be changed (Free.fr ISP is known to be very restrictive), the code stop immediately and return this incorrect error message ?

Upload works fine from backend so it is possible to do it no ?

Thaks for your help

oups, I forgot to ch

Posted: 22 May 2008, 14:20
by boby
oups, I forgot to check the email notification in my previous post ... sorry

...

Posted: 22 May 2008, 15:32
by Jan
the frontend upload should work the same way as backend (in frontend there is disabled the multiple upload because of security, but should work as in backend ... ... do you have enabled the ftp layer?

Yes but joomla compl

Posted: 22 May 2008, 16:46
by boby
Yes but joomla complains when I activate ftp layer in configuration panel and finally do not activate it

here are error msg when I try to activate ftp layer :

* JFTP::connect: Could not connect to host "ftpperso.free.fr" on port 21
* JFTP::_putCmd: Not connected to the control port
* JFTP::_mode: Bad response
* JFTP::_passive: Not connected to the control port
* JFTP::write: Unable to use passive mode

Can you tell me the php file to debug to find the exact problem ?

Thanks

you should look at c

Posted: 22 May 2008, 19:21
by Jan
you should look at com_media which is used for uploading (media manager) or controller.php (in Phoca Gallery frontend folder)

Jan

Re: Front end upload not working

Posted: 09 Aug 2008, 19:34
by elfa17
I have the same problem and don't see the way to solve it :x
Gallery installed perfectly, backend works without any problem, uloading through backend works well. But I need one user to be able to upload photos through frontend and cannot do that. All was done correct - permissions, user folder etc. But after I or user (who have permission) try to upload file through frontend - we have the same error every time:
Error:
* Warning! - Failed to change file permissions

Message:

* Unable to upload file

The strange thing is that file was upload and I can see it through FTP in the right folder, but it has CMOD 600 and the file has "apache" as the file owner, not my account.
Could anybody help me to fix the problem? I use this server for Joomla for a long time and used many galleries on it without troubles with users upload file systems. This is the first one, only on frontend :idea:

Re: Front end upload not working

Posted: 09 Aug 2008, 21:57
by elfa17
Well, I looked through another forum and found the way to solve my problem - I entered FTP setup data in global configuration and all troubles with changing file permissions were gone.

Re: Front end upload not working

Posted: 10 Aug 2008, 22:33
by Jan
great to hear it, Jan :wink: