These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

3 billion iks!! need web developer help small job

Author
anaka35
4S Corporation
The Initiative.
#1 - 2012-07-30 12:51:06 UTC
Hi, im needing some help with my website

PAY 3 BILLION ISK


I have some code that is used to upload files through the browser to my server. The code im using is from here, www.uploadify.com/download/download-uploadifive-standard/

what im after is a simple form.
with 1 text input field. with a browse button to select the files layout something like this.

name [ text field ]
browse [ browse text field ]





WHAT'S NEEDED FROM YOU?

the upload functionality works fine, what im needing help with however is as follows:

i need a way for the code to create a folder on the server with the name of the text box and the uploaded image moved inside that created folder.

anyone who think they can help please reply here

thanks



Som Boty
Super Mother Fan Club
#2 - 2012-07-30 16:42:31 UTC
sure man, I can help and have it done today. Msg me in game.
Karbowiak
State War Academy
Caldari State
#3 - 2012-07-30 17:27:31 UTC
http://karbowiak.dk/anaka35.zip

Should give you ideas.

And yes i used bootstrap to make the html, and regular ol' php for the rest.. have fun Blink
Steve Ronuken
Fuzzwork Enterprises
Vote Steve Ronuken for CSM
#4 - 2012-07-30 18:22:36 UTC
Just make sure that the code anyone gives you either:
Properly escapes the filenames, making sure there's no dodgy characters in them. (yes, upload ../../../../etc/passwd) And restrict the types, so people can't upload stuff like PHP.
Or
Sticks the filename into a db, and stores the file with a name generated from that db entry,like the primary key, in a directory that's not directly accesible. (though then you'll need to serve it using a script)


The moment you allow uploads, you open yourself to a bunch of vulnerabilities. I could be a touch paranoid about such Blink

Woo! CSM XI!

Fuzzwork Enterprises

Twitter: @fuzzysteve on Twitter