Search…

X3 Photo Gallery Support Forums

Search…
 
Stoffl
Topic Author
Posts: 4
Joined: 26 Aug 2008, 16:54

JPEG ownership and access rights in public hoster environmen

26 Aug 2008, 17:22

I'm currently using v1 in a public hoster environment and doing the picture uploads via FTP. Now this seems to change in v2 as the upload can be done (must be done?) via the PHP interface.

In this public hoster environment every file that's beeing created by a php script is then owned by the unix user "wwwrun". That's nothing that can be changed and I do not have access to this user account (it's managed and owned by the provider). This of course means that every further manipulation of a directory or file owned by wwwrun must be done by this user i.e. by a php script. (e.g. I cannot delete or move a file via FTP client as my FTP user account does not have the necessary write rights.)

If I do the upload via FTP the JPEGs are of course owned by my FTP user account and the php "user" will have read access only (unless I would grant the user/group "everyone" full access -> chmod 777 to the JPEGs, which - I think - is not a good idea anyway.)

So my question here is: Does V2 force me to only use the php interface to upload (move, delete,...) images or may I stick with me preferred method of uploading files via FTP and are there any (severe) limitations that I would need to consider?

So,... are there limitatins that just would hinder me from using some not mandatory features or would using an FTP client (which would grant the V2 php script just read access to the JPEGs) break the concept of V2?

In one sentence: Would using FTP for uploading in this scenario be supported?

I hope I was able to make my point clear and would really appreciate if someone could give me some insight here!

Thanks!
Stoffl

P.S. and keep up the great work in imagevue... I really like that!! :-)
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

27 Aug 2008, 02:25

Ofcourse if you set up everything already so ftp uploader dirs are writable for php, leave it like that and dont bother.

Unix filesystem is bit too advanced and without proper administration could be pain in the butt.

I usually have ftp mounted into my filesystem and just copy files to content dir, without bothering with uploader. Just copy over and files will appear in imagevue.
firedev.com
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

03 Sep 2008, 09:20

You can use FTP to create folders and upload images! I do this myself because I still prefer the file/folder management in FTP.

The only things you may have to make sure of, is that you set permissions for your folders, and you may need to "Clear cache" from admin after managing from FTP to reflect changes.

Of course, you still need to use the admin to create titles, descriptions and thumbnails etc.