PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old December 10th, 2004, 09:18 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Nov 2004
Posts: 49
[RC1]upload issue (user folders?)

Feeling rather sheepish since this seems to be a no brainer for everyone else...

Installed without a hitch
Attempt to upload a test image, and it seems to upload ok, but when it drops you to the image's page, its a red x - the path indicates it's looking for gallery/files/1/drb_animelfen.gif BUT there is no directory 1 - that's my user id on the forums, yes, but does that mean I have to create directories for EVERY user? or did I miss a step somewhere?

When I go to delete the image, I get the following error:
Code:
Content visible to verified customers only.
which makes sense, as there IS no directory "1"

OK, so how did I screw this up?

Thanks for any and all suggestions/direction!
nyifan is offline   Reply With Quote
Old December 10th, 2004, 10:29 PM   #2 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,400
Re: [RC1]upload issue (user folders?)

When the file gets upload it should automatically create the {root}/gallery/files/{user structure} folder on the fly. If that folder doesn't exist, then where on your drive did it actually put the uploaded image?
KW802 is offline   Reply With Quote
Old December 10th, 2004, 11:04 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Nov 2004
Posts: 49
Re: [RC1]upload issue (user folders?)

Quote:
Originally Posted by KW802
When the file gets upload it should automatically create the {root}/gallery/files/{user structure} folder on the fly. If that folder doesn't exist, then where on your drive did it actually put the uploaded image?
Thats an excellent question, and is probably why i got the dreaded red x, I assume - any ideas?
nyifan is offline   Reply With Quote
Old December 10th, 2004, 11:12 PM   #4 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,400
Re: [RC1]upload issue (user folders?)

Quote:
Originally Posted by nyifan
Thats an excellent question, and is probably why i got the dreaded red x, I assume - any ideas?
Is your {root}/gallery/files folder chmod'ed to 777 to allow the script to create new sub-folders?
KW802 is offline   Reply With Quote
Old December 10th, 2004, 11:17 PM   #5 (permalink)
Member
 
Join Date: Jun 2004
Posts: 164
Re: [RC1]upload issue (user folders?)

If you are running safe mode then this might cause problems
Kirby is offline   Reply With Quote
Old December 10th, 2004, 11:21 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Nov 2004
Posts: 49
Re: [RC1]upload issue (user folders?)

Quote:
Originally Posted by KW802
Is your {root}/gallery/files folder chmod'ed to 777 to allow the script to create new sub-folders?
yup, i triple checked that 1st

Quote:
Originally Posted by Kirby
If you are running safe mode then this might cause problems
Not that Im aware of **dbl checks**nope, not in safe mode - thanks for the suggestion though Kirby, feel free to keep tossing em out there ;-)
nyifan is offline   Reply With Quote
Old December 10th, 2004, 11:24 PM   #7 (permalink)
Registered User
Verified Customer
 
KW802's Avatar
 
Join Date: Nov 2005
Posts: 1,400
Re: [RC1]upload issue (user folders?)

Nyifan,

Would you mind posting a link to the page with the red-x?
KW802 is offline   Reply With Quote
Old December 10th, 2004, 11:33 PM   #8 (permalink)
Member
 
Join Date: Jun 2004
Posts: 164
Re: [RC1]upload issue (user folders?)

If the directory is not being created and your are sure that permissions and options are set correctly i'd suggest to remove the @ from the mkdir()-call in upload.php to see why it fails.
Kirby is offline   Reply With Quote
Old December 11th, 2004, 09:30 AM   #9 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2004
Posts: 16
Re: [RC1]upload issue (user folders?)

Im getting this same problem. I upload a file, it seems to add it, but after being validated by the administrator the thumbnail displays a red X (which I thought was perhaps due to the file being a .wmv) and points to the files/1 directory

Then looking at the directory via FTP I see no folder or file was created. I cannot change my files folder to 777. My host has seemed to dis-allow it. So I can only alter Read/Write access and have no ability to allow the Execute attribute.

Any ideas how to overcome this?
Simplicity is offline   Reply With Quote
Old December 11th, 2004, 09:39 AM   #10 (permalink)
Member
Verified Customer
 
Join Date: Nov 2004
Posts: 49
Re: [RC1]upload issue (user folders?)

OK, ive solved the upload issue (sleep sometimes IS required lol - it was ABSOLUTELY an I-D-10-T user error) and now Ive uncovered another - gif's and thumbnails do not play nicely togeather apparently.

I can upload a gazillion jpg's and they thumbnail without a hitch. However, if I upload a gif, dreaded red x for the thumbnail, image itself shows up fine. Is this a GD issue? I dont have imagemagick installed (I THINK - how do I check?) on my shared host, so I just went with GD which I know works fine for me with vB.

Link to the gallery is here - http://www.apinchofthis.com/forum/gallery/index.php?
(only 1 cat has images in it - 3 gifs, 1 jpg)
changed permissions so unreggistered users can check it out to see what I mean
nyifan is offline   Reply With Quote
Old December 11th, 2004, 09:41 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Nov 2004
Posts: 49
Re: [RC1]upload issue (user folders?)

Quote:
Originally Posted by Simplicity
Then looking at the directory via FTP I see no folder or file was created. I cannot change my files folder to 777. My host has seemed to dis-allow it. So I can only alter Read/Write access and have no ability to allow the Execute attribute.Any ideas how to overcome this?
Are you using an FTP program to upload to your server? In my hosting control panel, I didnt see an option for CHMOD but using FlashFXP, I just right clicked the dir, selected CHMOD and made my changes (making sure to check off apply to sub files and folders as well)
nyifan is offline   Reply With Quote
Old December 11th, 2004, 09:58 AM   #12 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2004
Posts: 16
Re: [RC1]upload issue (user folders?)

Quote:
Originally Posted by nyifan
Are you using an FTP program to upload to your server? In my hosting control panel, I didnt see an option for CHMOD but using FlashFXP, I just right clicked the dir, selected CHMOD and made my changes (making sure to check off apply to sub files and folders as well)
Yeah I use BulletProof FTP, I changed the attributes to 777 but they just return to 666.

I also tried the following here but didnt fix the problem. Im guessing because 777 attribute isnt allowed.

Another thing I noticed from the Admin panel when validating a uploaded file is the following:

Quote:
Warning: unlink(D:l3d-design.netwwwrootgalleryfiles//fi_gilles_and_rene_410156.wmv)[function.unlink.html]:No such file or directory in D:\l3d-design.net\wwwroot\forum\includes\functions_gallery.php on line 977

Warning: unlink(D:l3d-design.netwwwrootgalleryfiles//fi_gilles_and_rene_410156.wmv)[function.unlink.html]:No such file or directory in D:\l3d-design.net\wwwroot\forum\includes\functions_gallery.php on line 988
^ Is that due to the 'files' folder attributes or is there an error in the code somewhere not allowing the files to be added to the 'files' folder?

[Edit:] Nevermind, I re-installed a fresh copy, decided the D:l3d-design.netwwwrootgalleryfiles path looked strange so checked the path in AdminCP. Seems the slashes had vanished (im sure I added them), works ok now!
Simplicity is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
automatically create new user folders alyster4k How Do I? - vBulletin 3.0.X 5 November 17th, 2005 12:11 AM
Bulk upload.. Organizing folders instead of uploading under /users? dfnaccount How Do I? - vBulletin 3.0.X 7 October 26th, 2005 06:12 PM
Why are folders created for EACH user? Steve_C Photopost Pro How Do I...? 2 February 25th, 2005 04:42 PM


All times are GMT -5. The time now is 07:30 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0