CodeCanyon

Simple Multiple File Upload

  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
  • United States
rrgerman says
Purchased

I just bought your script. When I upload a file the folder remains empty although it says that it was successfully uploaded

6 months ago
Author
jamesf jamesf replied

Have you got 777 permissions on the upload folder? Email me the FTP details if you’re still having trouble.

6 months ago
Purchased
rrgerman rrgerman replied

Yeah i got it working thanks. I already email you asking you for lil help renaming the uploaded files to 1.jpg, 2.jpg …. up to 7.jpg… thats all I need to get the script working on my site… :) You told me you were gonna check that last weekend or the following days.. Ill be waiting… thanks!

6 months ago
Purchased
rrgerman rrgerman replied

Ok thank you very much!

6 months ago
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
  • Canada
mathfrick says
Purchased

Ok, your script seem working fine! but when a file is upload… in the directory i have no file. only a new directory named with number. and nothing inside…

can you help me please ?!

6 months ago
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
  • Canada
mathfrick says
Purchased

I receive the file on my email but i need it on my server…

6 months ago
Author
jamesf jamesf replied

sorry for slow reply, comment line 87 of the index.php where the @unlink function is. That’s removing it from the server on successful upload.

6 months ago
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
  • Canada
mathfrick says
Purchased

Ok, after “playing” a little bit with the cord… everything working fine!! Now i need some help with mimetype of .eps, .psd, .zip … they not working…

6 months ago
Author
jamesf jamesf replied

You’ll need to add the mimetypes for those files to the “allowed_types” array in the $params at the top, google each one for the correct mimetype.

6 months ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
  • United States
clintre says

Quick question…

Can this script have the upload directory outside of the web root? Files I am uploading are not something I want in the web accessible area.

example would be /home/client/uploads

6 months ago
Author
jamesf jamesf replied

I’m not sure to be honest, depends on your server configuration. Usually scripts dont have access to anything outside the root.

6 months ago
  • Has been a member for 1-2 years
  • Bought between 1 and 9 items
c1nco says
Purchased

Just purchased the script, seems to work well. Thanks!

In regards to multiple uploading:

Is there an easy way to post the file name (of a successful upload) to a $_session to display—similar to what is shown here: http://stackoverflow.com/questions/1326683/php-remember-file-field-contents?answertab=active#tab-top

Also if I use static file inputs…is there a easy way to breakdown validation per input?

for example—if there is an error on “file1” and “file4” I would like to wrap those elements in a separate css class.

Thank you!

4 months ago
Author
jamesf jamesf replied

Sorry for the slow reply, it should already display the uploaded files in the $uploaded_files variable?

If using static inputs you could query the original $_FILES array and see the error message there but for anything more it would require some custom changes to the script.

4 months ago
  • Has been a member for 1-2 years
  • Bought between 1 and 9 items
soinad says
Purchased

Hi. I bought your script, installed and don’t have issues. Actually I have got one small issue: when I send file page refresh. Unfortunately if I refresh the same page once again I will get same e-mail like before. So it means session has not finished after sending the file. How can I fix it? Thanks!

3 months ago
Author
jamesf jamesf replied

You could try a redirect after a successfull upload, try adding this after line 90: unset($_SESSION[‘time’]); header(“Location: /”);

3 months ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 100 and 499 items
ChrisMcDowell says
Purchased

Do you have a support forum? I have a simple contact page created on my site and would like to use this script to be able to e-mail resumes as an attachment. I cannot figure out how to do this within your documentation…

3 months ago
Author
jamesf jamesf replied

I don’t have a support forum, how can I help?

3 months ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
gyounger1 says
Purchased

hi

i have just purchased this script but it is uploading files as directory numbers? any ideas on why its doing this. i have chmod the folder to 7777 but dosnt make a difference thanks

2 months ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
gyounger1 says
Purchased

email sent.

2 months ago
Author
jamesf jamesf replied

Just replied.

2 months ago
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
stevefigueras says
Purchased

Hello i’ve got problem with your script It say that the file is uploaded but in my server (CHMOD 777 ) i just seen a directory with a number and nothing inside …

I’ve try to comment the line number 87 but no result…

Question 1 : How i can correct this problem ? Question 2 : How i can specify a specific folder and not a number as your script do ?

24 days ago
Author
jamesf jamesf replied

1) Uncomment line 82 instead, that’s deleting the files. 2) Remove the $time variable from the $params[‘upload_dir’] key, that should put everything in the uploaded_files folder.

Hope that helped!

23 days ago
Purchased
Default-user stevefigueras replied

Ok it’s works with your advices thank you so much :)

23 days ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
keucha says

Hi Jamesf,

I’m interested to buy your script but I’m wondering if there is a possibility in your class to limit the number of upload ?

Thank you.

24 days ago
Author
jamesf jamesf replied

There isn’t a limit built in however I could do a custom script for you. Email me for details.

23 days ago
Default-user keucha replied

Thank you Jamesf,

I finally decided to make a simple upload with some conditions. But I’ll looking forward for your plugin since I have other ideas where it will be very useful. Thanks again for your time.

23 days ago
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
stevefigueras says
Purchased

Ok another problem i modify in class // allowed file extensions var $allowed_file_extensions = array(’.jpg’,’.gif’,’.xlsx’);

and in file // array of allowed file extensions, used for display only ‘allowed_file_extensions’=>array(’.xlsx’),

And i can’t upload an xlsx file … Thank you for helping :)

23 days ago
Author
jamesf jamesf replied

You’ll also need to add the mimetypes to the $params[‘allowed_types’] variable.

23 days ago
  • Has been a member for 0-1 years
  • Bought between 10 and 49 items
  • United Kingdom
madesign54 says
Purchased

OK – 2 main questions your description clearly states that all is needed is to add – I quote: To use the simple multiple file upload script, first include the “class.file_upload.php” at the top of your script. // code require_once ”./php/functions.inc.php”;

However, it seems that you have to also include “your” PHPMailer_v2.0.4 ???

Am I correct in assuming this – as it contradicts your above statement? Especially if your using form post ???

2nd Question

I got it to work in minutes, – but you need to add clearer markup in your INDEX .php to identify the upload_dir part as simple as /* change these values */

However, my question is – I can get image/png + ’.png’, to work fine

BUT image/pdf ’.pdf’,

doesn’t work ???? again its a follow on from the previous members comment about xlxs files… so I am checking it out…

OK – why haven’t you combined these allowed file types into one script that will write both the text for the page as well as the mimetypes… saves on duplication as well as mistakes… I will look deeper into this, may be able to add something here…

I purchased this so as to allow clients to be able upload PDF files to emails, so am I missing something, or is your script unsuitable for this file type.

looking forward to a positive feedback on both Q 1 & 2

19 days ago
Author
jamesf jamesf replied

Hello,

Yes you’ll need to include the other files as well, if you want email notifications you’ll also need the phpmailer one. The allowed_file_extensions is used for nice error messages instead of parsing the many mimetypes that could be included for a particular file. Easy to use both but you’re right it could be made to use only one.

Not sure where you’re going wrong with excel files, ensure you’ve included all the mimetypes in the link in the comments as different browsers change it and also with the different versions of excel file.

The permissions issue is a server problem I think, PHP should use the apache user&group to create files and they should be deleteable although it entirely depends on your setup.

Hope that helps. Email me if not.

Regards, James

19 days ago
  • Has been a member for 0-1 years
  • Bought between 10 and 49 items
  • United Kingdom
madesign54 says
Purchased

OK – need help resolving this.. following the thread – I cannot get Microsoft Excel files to upload, however PDF ’s .doc .docx I can get to work, however it seems that the mimetype application/vnd.ms-excel doesn’t work???

I have resolved the DELETING of files off the server, by COMMENTING out both lines 82 and 87, in the threads this is not mentioned, as each is mentioned but not BOTH – but to get it to work you need to COMMENT both out.

Finally – Just come across the problem of FILE Permissions as when files are loaded to the server they are set at 644 as a default in the upload directory which is 777. But you cannot delete the files off the server if you need to??? How can we set the files so they can be deleted? or again am I over looking the obvious, as I cant seem to find where you have set the file permissions, so assuming a server default is at play, or the uploader is creating its own user permission?.

Slowly working through sorting this, so my COMMENTS will show the installation problems – hope you don’t mind.

19 days ago
by
by
by
by
by