PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Installation & Upgrades (http://www.photopost.com/forum/photopost-pro-installation-upgrades/)
-   -   PP is installed but we can't upload (http://www.photopost.com/forum/photopost-pro-installation-upgrades/140870-pp-installed-but-we-cant-upload.html)

marybeshaw October 1st, 2009 01:30 PM

PP is installed but we can't upload
 
Hi-
I've installed Photopost Pro and integrated it with phpBB3. It seems to work OK until I try to upload a file. I'd appreciate any insights anyone might have.
  • I set my upload limit to 10 MB and tried to upload a 2.2 MB file.
  • Safe mode is off.
  • The gallery dir is set to 755
  • The gallery/data dir is set to 777

The error I get is:
Unable to read the format of file: /home/digi/www/dev.designhousedigital.com/gallery/data/500/medium/2004-jen-and-spencer-5x7.jpg

Server/OS/etc:
  • FreeBSD 6.3
  • Apache 2
  • PHP 5
  • mysql 5.0.75
  • (viaVerio VPS v3)
  • Yes, I have root access
  • Integrated with phpBB3
  • Gallery URL: Gallery - Main Index

Thanks in advance!
Mary

Chuck S October 1st, 2009 01:35 PM

Have you set the data directory at every level to 777 permissions?

marybeshaw October 1st, 2009 01:44 PM

That was it. I hadn't set the subdirectories to 777 permissions. Thanks!

I have a general question about these permissions: How does setting web directory permissions to 777 affect the web site's security?

Mary

Chuck S October 1st, 2009 01:56 PM

well it can mean files can be uploaded to your site if someone gains access to some type of upload function but our program is secure. In most all hosting environments you must have a directory set to 777 to upload to it.

marybeshaw October 1st, 2009 02:02 PM

OK, I understand now. Thanks for the info!

I worked on a web-based file manager for a hosting company years ago, and we uploaded files to /tmp/ and then moved the files from there, rather than uploading directly to a directory. The app may have been run as root or as the owning user, though. I wish I could remember more clearly!

Chuck S October 1st, 2009 02:05 PM

well the way a file is uploaded to the server is this

The file when uploaded through http goes to the sites tmp folder on the server is moved to the users uploads directory by our program then processed by the image processor and dumped into the appropriate data directory.

marybeshaw October 1st, 2009 02:06 PM

OK. Thanks so much!

Chuck S October 1st, 2009 02:08 PM

Have a good day


All times are GMT -5. The time now is 12:58 PM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97