|
|
#1 |
|
Baseband Member
Join Date: Feb 2012
Location: United States
Posts: 29
|
So the script works but not perfectly like i want it,
I want a user to click "upload" select multiple files and then upload them to my server..... Currently i am only seeing the very last file that is selected and so it seems even though the script shows the number of files select it does not upload all the files. Here is my code PHP Code:
|
|
|
|
|
|
#2 |
|
Daemon Poster
|
Hi,
Do you have some html to go with this to try. Also for a great upload tutorial have a look at TUTORIAL: Upload Files To Database.
__________________
LEARN BY DOING NOT BY FOLLOWING DIRECTIONS! Linux Forever! I thought you were a hispanic/african american? Who is the white guy in the pictures? |
|
|
|
|
|
#3 |
|
Baseband Member
Join Date: Feb 2012
Location: United States
Posts: 29
|
I fixed it!
Now my question is how do you make it secure so someone cant upload a virus of something? |
|
|
|
|
|
#4 |
|
Daemon Poster
|
Well there are a lot of ways these days but the one that I see the most is captcha.
__________________
LEARN BY DOING NOT BY FOLLOWING DIRECTIONS! Linux Forever! I thought you were a hispanic/african american? Who is the white guy in the pictures? |
|
|
|
|
|
#5 |
|
Cheesoid
|
Check out: How To Automatically Scan Uploaded Files For Viruses With php-clamavlib | HowtoForge - Linux Howtos and Tutorials
There is a PHP Library that allows you to scan uploaded files with ClamAV. You could also limit the types of files that your users can upload. For instance, if you only want people to be able to share images, then there is no point in allowing exe's to be uploaded. You could go for a whitelist (only allow certain types of files), or a blacklist (dis-allow specific file types)... |
|
|
|
|
|
#6 |
|
Baseband Member
Join Date: Feb 2012
Location: United States
Posts: 29
|
I am afraid to pass along the website as I do not want to get flagged for advertising.
But even when I set the multiple tag option i can select multiple files but it only uploads the last file selected. Also my captcha works perfectly. BTW, I am running windows and wamp What I would like is for antivirus to scan the file when the submit button is pressed so that before the file ever hits the server it is scanned. |
|
|
|
|
|
#7 |
|
Daemon Poster
|
You can post your website, I don't think that you will be flagged for advertising, and if you do I can talk to one of the admins for you. Most of the time if they see it is needed for a thread then they will leave it alone.
__________________
LEARN BY DOING NOT BY FOLLOWING DIRECTIONS! Linux Forever! I thought you were a hispanic/african american? Who is the white guy in the pictures? |
|
|
|
|
|
#8 |
|
Baseband Member
Join Date: Feb 2012
Location: United States
Posts: 29
|
|
|
|
|
|
|
#9 |
|
Baseband Member
Join Date: Dec 2011
Location: Pakistan
Posts: 23
|
Dear you need to studu HTML and PHP forms and then read about Saving your data into MySQL. Do have a look at the Copy() function in PHP and know how to save your files.
|
|
|
|
|
|
#10 |
|
Beta Member
Join Date: May 2012
Location: uk
Posts: 4
|
hi, had a break in my home the other week. took all my nice bits i pad i pods mp4 player etc but my sony vaio tz was taken. getting old now but was great for what i used it for! what do i get to replace it these days?
many thanks in advace to any help i get! Last edited by mikeyman; 05-08-2012 at 06:11 AM. Reason: maners |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|