Search…

X3 Photo Gallery Support Forums

Search…
 
lxffm81
Topic Author
Posts: 2
Joined: 21 Oct 2017, 04:32

Can't upload files into gallery folder via FTP

21 Oct 2017, 06:55

Hi all,

I have the issue, that when I created a gallery with the panel, I can't upload files using FTP to this folder. I'm also unable to change folder permissions to 777.
Seems that the folders from the panel are created under the user www and ftp files are uploaded under the user ftp.

How can I treat this issue? Can I force the panel to chmod 777 the created folders right away?

I wouldn't be to happy if it requires me to create all galleries (the folders) via FTP actually, but when created finally my lightroom workflow uploads the files via FTP to the corresponding gallery folders. So I would prefer actually both, creating the galleries using the panel but uploading the content using FTP.

Can anyone assist on this?

BR,
Alex

 
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Can't upload files into gallery folder via FTP

21 Oct 2017, 07:15

First of all, this is a SERVER issue. MOST hosts, for your convenience, have the SAME user assigned for FTP and the WWW-user (PHP), so you avoid these permission issues in the first place. I would recommend contacting your host about this if you want a proper solution, because it's their issue and not something we can do anything about in X3. X3 doesn't even set/use permissions ... It's just tries to "write" files/folders, and is under the laws of your hosts user/permissions system.
lxffm81 wrote:I have the issue, that when I created a gallery with the panel, I can't upload files using FTP to this folder. I'm also unable to change folder permissions to 777.
Yep, so this is because your server does not use the same user for FTP and WWW. X3 As mentioned, X3 does not "set" permissions in any way, and it is your server that has decided what user X3 (www) will write files as. If this is different from FTP, that is unfortunate ... This is not good for basic hosting. USUALLY, FTP user will have permissions to write to any folders, even if the folder is owned by another user.

Why are you trying to upload files by FTP after creating the folder by X3 panel anyway? If you want this solved, it means you need to choose a better host, as X3 cannot fix this for you.
lxffm81 wrote:How can I treat this issue? Can I force the panel to chmod 777 the created folders right away?
There is a PHP setting to set CHMOD, but I have never seen a server environment that allows this, so it is unlikely.
lxffm81 wrote:I wouldn't be to happy if it requires me to create all galleries (the folders) via FTP actually, but when created finally my lightroom workflow uploads the files via FTP to the corresponding gallery folders. So I would prefer actually both, creating the galleries using the panel but uploading the content using FTP.
Still not 100% sure why you need to upload but FTP, but I'm sure you have a good reason in your lightroom workflow. However, I need to emphasize, it is only your hosting that can solve this issue for you. I'll be straight-forward: Your are on an old-fashioned hosting setup where the host has different USER ID's assigned for FTP and WWW. This is unproductive for the user (you).
 
lxffm81
Topic Author
Posts: 2
Joined: 21 Oct 2017, 04:32

Re: Can't upload files into gallery folder via FTP

21 Oct 2017, 13:53

Thanks for being detailed in your reply. I've used the ftp export plugin feature for Lightroom to automatically publish my photos to certain galleries. Is there a proper Lightroom plugin by now to publish to imagevue in any other way? That would also solve my topics.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Can't upload files into gallery folder via FTP

21 Oct 2017, 23:19

Lightroom plugin would be nice, but it's not gonna be something to expect very soon unfortunately.

Also, in your case, I can't see how it would solve your server issue. A Lightroom plugin would be tied in with FTP, and if the WWW-user is not allowed to write to folders created by FTP (Lightroom plugin), then how are you supposed to use the X3 control panel afterwards to for example create a title or sort images?
I have the issue, that when I created a gallery with the panel, I can't upload files using FTP to this folder. I'm also unable to change folder permissions to 777.
The above is what I find very strange. It's not unheard of to have different USERS for FTP vs WWW, and to have to "set permissions" manually (by FTP) on some folders so they are writeable (although tedious). However, I have never come across a setup where you can't assign permissions from FTP ... 

I am guessing your server has a "security" setting that prevents setting CHMOD 777. Instead, try to set CHMOD 775, which should be sufficient. If that is not possible (which is unlikely), then I can't see any feasible way to work with this issue.

If you want, you can give me FTP access to your website, and I would like to try a few things ...