close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

multiple file upload

Thread began 8/17/2019 6:47 pm by randyrie405335 | Last modified 11/18/2021 2:54 pm by Ray Borduin | 1233 views | 23 replies |

randyrie405335

multiple file upload

How do I use DataBridge's file upload to upload multiple files to the server

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post
Did this help? Tips are appreciated...

randyrie405335

Not working

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?

Sign in to reply to this post

Ray BorduinWebAssist

Please attach a copy of your page and I'll see if I can spot the problem.

Sign in to reply to this post
Did this help? Tips are appreciated...

randyrie405335

Nope... still not working

This post has been deleted.

Ray BorduinWebAssist

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");

Sign in to reply to this post
Did this help? Tips are appreciated...

randyrie405335

'corrected' PHP page still not working

I'm uploading the PHP file for you to scour and see what I'm messing up.

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post
Did this help? Tips are appreciated...

randyrie405335

Not Working

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.

Sign in to reply to this post

Ray BorduinWebAssist

I updated the webassist/file_manipulation/helperphp.php to fix the issue with multiple uploads, so it should work now.

Sign in to reply to this post
Did this help? Tips are appreciated...
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...