Front end upload not working

Phoca Gallery - image gallery extension
boby
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 22 May 2008, 02:07

Hi,I cannot up

Post 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 !
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

maybe there is probl

Post 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
If you find Phoca extensions useful, please support the project
boby
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 22 May 2008, 02:07

Not really because t

Post 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
boby
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 22 May 2008, 02:07

oups, I forgot to ch

Post by boby »

oups, I forgot to check the email notification in my previous post ... sorry
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

...

Post 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?
If you find Phoca extensions useful, please support the project
boby
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 22 May 2008, 02:07

Yes but joomla compl

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

you should look at c

Post by Jan »

you should look at com_media which is used for uploading (media manager) or controller.php (in Phoca Gallery frontend folder)

Jan
If you find Phoca extensions useful, please support the project
elfa17
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 09 Aug 2008, 19:02

Re: Front end upload not working

Post 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:
elfa17
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 09 Aug 2008, 19:02

Re: Front end upload not working

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Front end upload not working

Post by Jan »

great to hear it, Jan :wink:
If you find Phoca extensions useful, please support the project
Post Reply