Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

ISSUE: Can't see images after upload using admin.

04 May 2007, 09:22

Sometimes on weird hosting platforms images are not being shown after upload using imagevue admin, but thumbnails appear. That caused by server chmodding them so they are not accessible by browser but still can be reached using php.

Solution
If you one of the unlucky in admin/upload.php you should add 2 times after line:
Code
...
move_uploaded_file($tmp_name,'../'.$path.$file_name);
...
the following:
Code
chmod ( '../'.$path.$file_name, 0666);
So they will look like this:
Code
...
$copy = move_uploaded_file($tmp_name,'../'.$path.$file_name);
chmod ( '../'.$path.$file_name, 0666);
...
and
...
$copy = @move_uploaded_file($tmp_name,'../'.$path.$file_name);
chmod ( '../'.$path.$file_name, 0666);
...
We have different uploading routines for Firefox and IE so it must be done twice. This will make sure the files you upload will be chmodded to 666 (read/write for everybody) and should fix it.

I think we will release some improvement soon, meanwhile if you encouter this issue here's how to fix it.
firedev.com