Jump to content

Php Upload Script


airjunkie2000
 Share

Recommended Posts

Hello, At one point in time I had a small php upload script on my site for users to upload files (images and movies). Someone got into the folder and created sub folders off of it. Basically I got hacked. I am looking for a way to have a very simple upload script that dumps all the files into one folder and is safe... Any ideas, I have seached the forums and came up with a lot of big freebie scripts, but thats not what I need.

 

Thanks

Link to comment
Share on other sites

Hello, At one point in time I had a small php upload script on my site for users to upload files (images and movies). Someone got into the folder and created sub folders off of it. Basically I got hacked. I am looking for a way to have a very simple upload script that dumps all the files into one folder and is safe... Any ideas, I have seached the forums and came up with a lot of big freebie scripts, but thats not what I need.

 

Thanks

 

I don't know enough to judge the security of this script, but I've used it and I like it. There is probably some security info on the site:

 

http://www.reducedcomplexity.com/php/index...rview〈=en

Link to comment
Share on other sites

So basically all the user will see is a input box for selecting the file and a submit button? All files then get put into a single folder. Any checks to be performed on the files or are all file types acceptable? Not a difficult script to throw together if thats all it does.

Link to comment
Share on other sites

No, not all files are acceptable. I think there's a setup script, but it's really simple and you can go into the config.php file and define the file types you want it to check. One other thing I thought was cool was that there's a field for the user to name or rename the file. But if I could set it up, it's pretty easy. The docs on the site are good explaining everything, though once I figured out what it did, I did the download and install without needing them. I just can't remember the details now:)

Edited by valerie
Link to comment
Share on other sites

No I was asking airjunkie2000 what they required from a script because as I said I doubt it would be that hard for me to throw something together.

 

 

Hi Carbonize, thanks for the reply. Basically all I need to do is have a small script with one input box (browse button) and one submit button. Let the user browse his/her PC hard disk for items to upload and all the uploads are put in one folder.

I would like to limit the files to .jpg, .gif, .bmp, .wmv, .mpeg, .mpg, .avi (video and picture), but limiting the file types is not necessary.

 

I have a script that does the simple upload to one folder, the problem is that someone got in there and made more directory structure off the folder and uploaded an executable file. Im not sure how to keep people in the one dedicated folder and keep them from hacking me, thats the issue.

 

Any ideas, please let me know.

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...