Uploaded files identification
Uploaded files identificationHello!
We need to upload up to three files at the same time and we need to identify them because they will be saved in different table fields. The end user would be able to upload file #1 and file #3, or file #1 and file #2, or the three of them. How can we do this using JFileUpload or JBatchUpload add-on? Thanks! Gus. Re: Uploaded files identificationHow do you identify file#1 from file#2 ? by filename, file content or size ?
Also, are you using FTP or HTTP upload ? Re: Uploaded files identificationWe are currently adding 3 files on one panel. The customer currently chooses (with browse box) which 3 files he wants to upload. One goes to "media file" one goes to "image" and one goes to "extra file". Each of these fields is programmed to send file to particular folder and updating of database with name of each entry.
We are using HTTP. See the sample sceen below. http://www.testacl3.com/input%20screen.gif Thank you Skramer Re: Uploaded files identificationThe first solution I'm thinking about would be to have 3 instances of JFileUpload in one HTML page:
- Applet1: Media uploader It includes an extra parameter to identify that it is a Media file <PARAM NAME="param5" VALUE="identifier"> <PARAM NAME="value5" VALUE="media"> - Applet2: Image uploader It includes an extra parameter to identify that it is an Image file <PARAM NAME="param5" VALUE="identifier"> <PARAM NAME="value5" VALUE="image"> - Applet3: Additional uploader It includes an extra parameter to identify that it is an Additional file <PARAM NAME="param5" VALUE="identifier"> <PARAM NAME="value5" VALUE="additional"> End-user select files to upload into the correct Applet. Then on server-side you get the HTTP "identifier" parameter and you could save the file in the correct area. Could it answer to your need ? Re: Uploaded files identificationOk we will try that.
2 more questions: 1) The "meida file" is REQUIRED. The "image" and "additional files" are OPTIONAL. We need the system to wait for all values on screen (see image again) to wait until an "upload files" button is clicked. The sample we are using will process the file as soon as it is draged and dropped into box. How do we make it wait for "upload files" to be clicked? 2) Is there a way to "browse" for files instead of (or in addition to ) Dragging and Dropping files? Thank you skramer Re: Uploaded files identificationWe see jfilesupload has a "Select Files" button and jbatchupload has a "Start Upload" Button. Looks like we should be able to build our application with these two items.
To that end we would like to present the complete workflow for page and ask you commnet on how we are to construct it. Please use this image as a guide to workflow presented below: http://www.testacl3.com/input%20screen.gif 1) Enter "Product Title" 2) Enter "Product Description" 3) Browse and Select "Media File" 4) (Optionally) Browse and Select "Image File" 5) (Optionally) Browse and Select "Additional File" 6) Click "Upload Files" - Page is processed (files are uploaded to proper folders and record is written to db) 7) Redirected to "Confirmation Page" Please let us know how to construct a page that works like this and let us know if jbatchupload is required. Thank you skramer Re: Uploaded files identificationI think that JBatchUpload is only needed if you want the end-user to press "Start upload" before uploading. With JFileUpload, you can browse files (with "Select files" button you can setup thanks to i18n.properties) and upload immediately.
Another idea to implement it: The 3 instances of upload applets should work but it might be quite "heavy" to manage especially because of mandatory/optional files. What you really need is a custom front-end to select media, image and additional files. The custom front-end need to check that media is filled in (because mandatory) before uploading the whole selection. If you're willing to pay for a such custom front-end then we could develop it as a custom development. If you're interested in then contact support(at)jfileupload(dot)com Re: Uploaded files identificationFirst Please tell us how to do this with jbatchupload becuause we DO need the application needs to wait until all of the correct information is filled in .
I will also (seperately) contact support for a quote on application. Thank you skramer Re: Uploaded files identificationIf we use 3 instances of JBatchUpload then you will have 3 "Start upload" buttons, see image below. Could it fit to your need ?
To have the 3 instances, I've used the following code in an HTML file. applet_http_batchupload.js is the JavaScript provided in JBatchUpload package. Code: Select all
Re: Uploaded files identificationOur preference is to have a SINGLE "Upload Files" button as described in the workflow below. :
=========================================================================== 1) Enter "Product Title" 2) Enter "Product Description" 3) Browse and Select "Media File" 4) (Optionally) Browse and Select "Image File" 5) (Optionally) Browse and Select "Additional File" 6) Click "Upload Files" - Page is processed (files are uploaded to proper folders and record is written to db) 7) Redirected to "Confirmation Page" ============================================================ We designed this page for simplicity and would like to continue to use it however with better upload reliability from your products. How do we do this with your tools? (we have paid for jfileupload Enterprise ........smiles....) thank you skramer |