PDA

View Full Version : I made a file upload script for EE


freybud
8th of December 2002 (Sun), 04:29
Hey, I'm not sure if the new version of EE has the ability to upload files but this is what I worked out:

1) CHMOD to 777 for the directories you wish to upload to

2) Edit the menu.php file in the admin folder so that it has a link to "upload.php"

3) Create a file named upload.php and insert the following code:






Photo Upload












Photo
Path:

" SIZE=50>




Thumbnail
Path:

"id="thumbpath" SIZE=50>




Photo1:







Thumbnail1:







Photo2:







Thumbnail2:







Photo3:







Thumbnail3:







Photo4:







Thumbnail4:

seanspeng
8th of December 2002 (Sun), 11:53
That sounds great. Do you have a screenshot of this program?

Thanks!

freybud
8th of December 2002 (Sun), 21:43
Yeah, here are the screenshots (cropped of course).

http://www.freyguys.com/images/upload_script.gif

And here's how it looks after you upload a file:


http://www.freyguys.com/images/upload_script2.gif

seanspeng
9th of December 2002 (Mon), 23:53
Thanks to your great work! I am thinking about using it. Is it possible to make the interface more like the FTP where you can highlight and select a bunch of them, then click once to upload them all (for example for normal size) instead of click on each file?

Thanks!

freybud
10th of December 2002 (Tue), 01:34
Yeah, that would be a bit more complicated but I'll work on a gui for it. Flash has a new extention for an ftp interface. I'll try that.

Next2net
10th of December 2002 (Tue), 02:02
This is what EE is lacking. A quick way to resize and bulk load images at once. I'm using Breezebrowser to shorten this process by using its HTML feature to resize a lot of images to two different sizes. This works pretty good. Here is the link to Breezebrowser. Keep us posted on your progress...

BreezeBrowser (http://www.breezesys.com/)

Thanks,
Robb

seanspeng
10th of December 2002 (Tue), 10:33
next2net wrote:
This is what EE is lacking. A quick way to resize and bulk load images at once. I'm using Breezebrowser to shorten this process by using its HTML feature to resize a lot of images to two different sizes. This works pretty good. Here is the link to Breezebrowser. Keep us posted on your progress...

BreezeBrowser (http://www.breezesys.com/)

Thanks,
Robb

In the original resize action included in EE files, there are some actions like profile coversion, sharpening, quality setting, etc. I wonder if you use BreezeBrowser, can you do the same thing to get the best result?

Next2net
10th of December 2002 (Tue), 12:05
seanspeng wrote:
next2net wrote:
This is what EE is lacking. A quick way to resize and bulk load images at once. I'm using Breezebrowser to shorten this process by using its HTML feature to resize a lot of images to two different sizes. This works pretty good. Here is the link to Breezebrowser. Keep us posted on your progress...

BreezeBrowser (http://www.breezesys.com/)

Thanks,
Robb

In the original resize action included in EE files, there are some actions like profile coversion, sharpening, quality setting, etc. I wonder if you use BreezeBrowser, can you do the same thing to get the best result?


I think so. You can look at my gallery and see the photos. I used breezebrowser to resize all photos to EE. They are all untouched. Let me know what you think? Below is my gallery link.

Next2net EE Gallery (http://www.next2net.com/gallery)

Thanks,
Robb

Hal Davey
10th of December 2002 (Tue), 14:42
"1) CHMOD to 777 for the directories you wish to upload to "

Could you help out a complete newbie to php and give an example of this? Are you talking about a line of code with chmod?
Thanks and sorry for the dumb question.
Hal D

seanspeng
10th of December 2002 (Tue), 15:02
Hal Davey wrote:
"1) CHMOD to 777 for the directories you wish to upload to "

Could you help out a complete newbie to php and give an example of this? Are you talking about a line of code with chmod?
Thanks and sorry for the dumb question.
Hal D

If you have a FTP (WS_FTP95 LE ), when you right click on the directory, and change the permission by selecting chmod. Select READ, VIEW AND WRITE.