multiple file upload
How do I use DataBridge's file upload to upload multiple files to the server
How do I use DataBridge's file upload to upload multiple files to the server
Are you saving the files to the database somehow or just uploading them? Do you want a certain number of uploads, or as many as the user wants?
If you just name your file upload field as an array and add the multiple attribute like: <input type="file" name="multipleUploads[]" multiple /> then it will support multiple uploads.
I'm inserting the form's content to a MySQL dB which is working and am trying to upload selected files to a directory on the server which is not working... here is the code I'm using on the form: <input type="file" name="multiplUploads[]"multiple id-"upload"/> and how do I "name your file upload field as an array "... can you provide an example?
Please attach a copy of your page and I'll see if I can spot the problem.
Update line 29 from:
WA_DFP_UploadFiles("WA_UploadResult1", "FileUpload", "0", "", "false", $WA_UploadResult1_Params);
to:
WA_DFP_UploadFiles("WA_UploadResult1", "multiplUploads", "0", "", "false", $WA_UploadResult1_Params);
It looks like you didn't update the code references when you updated the file name. You probably need to delete the form validation from that field, so remove this line:
$InsertQuery->bindColumn("FileUpload", "s", "".((isset($_FILES["FileUpload"]))?$_FILES["FileUpload"]["name"]:"") ."", "WA_DEFAULT");
I'm uploading the PHP file for you to scour and see what I'm messing up.
That looks like it would work. Can I get FTP access and a URL to reproduce? It may be that you are using an older version of the file: /webassist/file_manipulation/helperphp.php
It was updated to support multiple uploads after your purchase, so you may have an older version of that file. Reinstalling and uploading the latest could be a solution.
I do have the latest version of DBV2 installed. I'm attaching my FTP info in the private message below. Let me know if you have any issues getting to the server.
I updated the webassist/file_manipulation/helperphp.php to fix the issue with multiple uploads, so it should work now.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.