View Full Version : What is the code to have a "uplaod file" page?
geldesigns
09-19-2007, 02:30 PM
Exemple:http://www.topcreatives.com/index.cfm?fuseaction=Member.ChallengeSubmission&challenge=16
Is a page for a contest online where users would upload jpegs images.
And where do the image go to?
:rolleyes:
boogyman
09-19-2007, 03:00 PM
somewhere on their server... why?
geldesigns
09-19-2007, 03:21 PM
I want to create a page like that,
and i am looking for a code that i can use
so my users could send me jpeg images to participate in a by-monthly competition.
boogyman
09-19-2007, 03:27 PM
you need some type of server-side language (PHP / ASP)
and some type of Database (MySQL / Oracle)
take a look at some of the other threads on this topic
http://www.dynamicdrive.com/forums/search.php?searchid=1967928
james438
09-19-2007, 09:23 PM
I get a dead link when I click on that one boogyman. I don't use MySQL/ORACLE for my upload program. That's not to say that it wouldn't be more useful to have one, I just have never found the need for a database when uploading images or files.
I am sure there are other better threads, but try this one for starters: http://www.dynamicdrive.com/forums/showthread.php?t=23741
thetestingsite
09-19-2007, 09:29 PM
Here are a couple of links that you can also look at:
http://www.php-mysql-tutorial.com/php-mysql-upload.php
http://www.tizag.com/phpT/fileupload.php
Hope this helps.
boogyman
09-19-2007, 11:54 PM
I get a dead link when I click on that one boogyman.
its a dead link because it was a search that i performed here on DD. there have been many threads on php upload's and I was attempting to link you to the list so you could find the one that best suits your needs.
I don't use MySQL/ORACLE for my upload program. That's not to say that it wouldn't be more useful to have one, I just have never found the need for a database when uploading images or files.
well if someone is going to upload images / files the chances are he/she is going to want to reference what was uploaded, thus you would need some way of tracking the files, and if you used a database. however this would also include type of user-login system as well, or you could do something like yousendit.com which will allow uploads and give you / the person you choose to email the file to will get a link and after 7 days the file is deleted off the server.
james438
09-20-2007, 02:12 AM
Not that it helps that much, but I upload the files to my file system/server and view them with http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm. It can view things in chronological order too. Of course this is not ideal in that what if the user were to upload content that is questionable at best?
What I have heard, however is that it is best to upload images to the file system and put the urls to those images in the database because storing actual images in a database is often taxing on the database and slows it down for other users. I don't think storing images is what a database was meant for.
http://lists.apple.com/archives/web-dev/2005/Dec/msg00084.html
http://www.hockinson.com/index.php?s=37
EDIT: I was looking the issue of whether it was better to store images in the file system or in the database as blobs, in google groups and dev.mysql.com and it seems that this issue has been debated ad nauseum.
genevate
09-01-2008, 08:53 PM
We created DesignFTP (http://www.designftp.com) to solve this exact problem most designers and developers have. We ran across this with our clients getting us large files. Check it (http://www.designftp.com) out I think it is exactly what you want without having to do all the work.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.