Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Bidding Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 08-29-2007, 12:41 PM   #1 (permalink)
Contributing Member
 
Join Date: 07-01-06
Posts: 110
iTrader: 0 / 0%
Latest Blog:
None

marc_gfx is liked by many
File Upload

I'm currently using simple forms to upload files. added some nice code to allow zip-file upload that are then decompressed and handled individually. works fine on my development-machine but can't get it to work on my live system, due to limitations in the system and not available packages supporting zip... wasted tons of time...

however, I was simply wondering what you guys use for file-upload. java-applications seem like a good idea, but the ones I found always have rather restrictive licensing (only one domain, but my site is intended to support a lot more).

coding an application myself would be an option, but that doesn't massively appeal to me currently. A lot of work and I'm sure there's something far better than what I would put together in a week... any suggestions? I also need handling-freedom on the server-side, what could make things a little complicated... maybe something open-source?
__________________
Test your geography knowledge on MapBattle.com! You can also make your own map challenges ;)

Get your real-life teams organized! Onlito.com, Online Team Organisation (Free & Beta)
marc_gfx is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 08-29-2007, 12:46 PM   #2 (permalink)
Member
 
cwboaze's Avatar
 
Join Date: 08-23-07
Location: Virginia, United States
Posts: 38
iTrader: 0 / 0%
Latest Blog:
None

cwboaze is liked by many
I would use php in a file uploading solution. Dynamic like I want it and building in gzip, or tons of zip functions. I always do it by hand!, for me it's faster than buying software.
__________________
Thanks,
CBTheOne :)
cwboaze is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-29-2007, 12:52 PM   #3 (permalink)
Contributing Member
 
Join Date: 07-01-06
Posts: 110
iTrader: 0 / 0%
Latest Blog:
None

marc_gfx is liked by many
I want to handle:
gallery upload (preferrably many images, preferrably rescaling before upload)
file upload (cool would be zip before transmission, unzip on receiving)

I am currently using php and http upload.

I never bought software for webstuff so far, but I kind of fear it could take a lot of time to produce something really userfriendly.
__________________
Test your geography knowledge on MapBattle.com! You can also make your own map challenges ;)

Get your real-life teams organized! Onlito.com, Online Team Organisation (Free & Beta)
marc_gfx is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-29-2007, 12:56 PM   #4 (permalink)
Member
 
cwboaze's Avatar
 
Join Date: 08-23-07
Location: Virginia, United States
Posts: 38
iTrader: 0 / 0%
Latest Blog:
None

cwboaze is liked by many
for remaping the images I like using GD.

I agree upload zip, transfer then unzip.

and gallery upload, you mean select a directory and
it upload what inside of that directory based on the name of each folder or are you talking about manually image uploading like a image host does.

I live by php!.

I hear of a few that would save you time, but if I am that busy I better be rich. lol!
__________________
Thanks,
CBTheOne :)
cwboaze is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-29-2007, 01:26 PM   #5 (permalink)
Contributing Member
 
lordspace's Avatar
 
Join Date: 05-30-06
Location: Canada
Posts: 445
iTrader: 0 / 0%
lordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nice
Send a message via ICQ to lordspace Send a message via Skype™ to lordspace
after upload you may need to start a command to unzip the file.

possible options.

#1
system('unzip some_tmp_file.zip');
or `unzip some_tmp_file.zip`
if zip external linux command is not available you might check check gzip/gunzip linux commands.

#2 http://pear.php.net/package/Archive_Zip
lordspace is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-29-2007, 02:17 PM   #6 (permalink)
Contributing Member
 
Join Date: 07-01-06
Posts: 110
iTrader: 0 / 0%
Latest Blog:
None

marc_gfx is liked by many
thanks lordspace. good idea! I've used the system command before but was too stupid to make that simple connection :S ... will give it a go with zipping again, maybe I can even make a simple applet to group files into a zip before uploading. would be pretty cool.
__________________
Test your geography knowledge on MapBattle.com! You can also make your own map challenges ;)

Get your real-life teams organized! Onlito.com, Online Team Organisation (Free & Beta)
marc_gfx is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-29-2007, 09:17 PM   #7 (permalink)
Contributing Member
 
lordspace's Avatar
 
Join Date: 05-30-06
Location: Canada
Posts: 445
iTrader: 0 / 0%
lordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nice
Send a message via ICQ to lordspace Send a message via Skype™ to lordspace
Why mixing languages ?
you just need multiple upload buttons.
lordspace is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-30-2007, 03:04 AM   #8 (permalink)
Contributing Member
 
Join Date: 07-01-06
Posts: 110
iTrader: 0 / 0%
Latest Blog:
None

marc_gfx is liked by many
I could be mistaken, but form uploads have quite a few drawbacks:
- no progress bar
- php has a time-out, so if you upload a lot at once the script could be broken. or it just takes ages and the user doesn't know whats going on

pro of an applet:
- an applet would allow to resize images before uploading
- compressed data saves bandwidth
__________________
Test your geography knowledge on MapBattle.com! You can also make your own map challenges ;)

Get your real-life teams organized! Onlito.com, Online Team Organisation (Free & Beta)
marc_gfx is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-30-2007, 07:53 AM   #9 (permalink)
Contributing Member
 
lordspace's Avatar
 
Join Date: 05-30-06
Location: Canada
Posts: 445
iTrader: 0 / 0%
lordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nicelordspace is just really nice
Send a message via ICQ to lordspace Send a message via Skype™ to lordspace
You can fix timeout by setting set_time_limit(0) (if safe mode is off).
I usually set this to something big (24 * 3600 = 1 day), not unlimited because this is software and may/will contain errors

Progress bar can be accomplished with AJAX I've seen some solutions.

There are rare situations that languages will restrict you to do something.
Some languages are better than others because they have different goals.
For example: if you try to generate a page using Delphi and PHP. For web pages PHP is better, but on the other side if you try to create quick and nice Windows application Delphi will do the job.

You decide what to do.
lordspace is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-30-2007, 07:57 AM   #10 (permalink)
Member
 
cwboaze's Avatar
 
Join Date: 08-23-07
Location: Virginia, United States
Posts: 38
iTrader: 0 / 0%
Latest Blog:
None

cwboaze is liked by many
well said, it all comes down to what you want done. Your Styles and Taste on things.
__________________
Thanks,
CBTheOne :)
cwboaze is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



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

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

vB 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
php file upload DragonEye Coding Forum 3 09-10-2004 06:41 AM
file upload DragonEye Coding Forum 2 02-17-2004 01:25 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 05:33 AM.
© Copyright 2008 V7 Inc