Uploaded files identification

Upload core product.
gedelstein
Posts: 1
Joined: Fri Apr 25, 2008 2:14 pm

Uploaded files identification

Post by gedelstein »

Hello!

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.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Uploaded files identification

Post by support »

How do you identify file#1 from file#2 ? by filename, file content or size ?

Also, are you using FTP or HTTP upload ?

skramer
Posts: 5
Joined: Sun Apr 27, 2008 1:36 pm

Re: Uploaded files identification

Post by skramer »

We 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

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Uploaded files identification

Post by support »

The 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 ?

skramer
Posts: 5
Joined: Sun Apr 27, 2008 1:36 pm

Re: Uploaded files identification

Post by skramer »

Ok 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

skramer
Posts: 5
Joined: Sun Apr 27, 2008 1:36 pm

Re: Uploaded files identification

Post by skramer »

We 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

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Uploaded files identification

Post by support »

I 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

skramer
Posts: 5
Joined: Sun Apr 27, 2008 1:36 pm

Re: Uploaded files identification

Post by skramer »

First 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

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Uploaded files identification

Post by support »

If 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

    <b>Media File:</b><br>
<!-- JFileUpload Applet : Begin copy/paste -->
<script src="applet_http_batchupload.js"></script>
<!-- JFileUpload Applet : End copy/paste -->
        <br>
    <b>Image File:</b><br>
<!-- JFileUpload Applet : Begin copy/paste -->
<script src="applet_http_batchupload.js"></script>
<!-- JFileUpload Applet : End copy/paste -->
        <br>
    <b>Additional File:</b>
    <br>
<!-- JFileUpload Applet : Begin copy/paste -->
<script src="applet_http_batchupload.js"></script>
<!-- JFileUpload Applet : End copy/paste -->
        <br>
Attachments
3jbatchupload.gif
(8.7 KiB) Downloaded 216 times

skramer
Posts: 5
Joined: Sun Apr 27, 2008 1:36 pm

Re: Uploaded files identification

Post by skramer »

Our 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

Post Reply