JBatchUpload API query

Enhanced frontend add-on to queue files.
RoyEaton
Posts: 6
Joined: Wed Jun 17, 2009 4:10 am

JBatchUpload API query

Post by RoyEaton »

How would you go about doing the following:
  • trigger the file browse select from javascript.
    trigger the batch upload from javascript.
  • move the 'Select' button to the left of the file grid.
    make the file grid go the full height of the applet size definition.
Regards,
Roy.

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

Re: JBatchUpload API query

Post by support »

Trigger upload from JavaScript is not available without customization because if could be a security hole. However, extending the JSAPI should be easy to add this feature if you have Java skills. I'm going to send you an email with JSAPI.

For the select button, you mean bottom left ?

RoyEaton
Posts: 6
Joined: Wed Jun 17, 2009 4:10 am

Re: JBatchUpload API query

Post by RoyEaton »

Currently in ProgressPanel.java; class ProgressPanel

Code: Select all

    private String getBorderLayoutLocation(String locationStr)
    {
    	String ret = BorderLayout.CENTER;
    	if (locationStr != null)
    	{
    		if (locationStr.equalsIgnoreCase("top")) ret = BorderLayout.NORTH;
    		else if (locationStr.equalsIgnoreCase("bottom")) ret = BorderLayout.SOUTH;
    		else ret = BorderLayout.CENTER;
    	}
    	return ret;
    }
This does not allow the buttons to be placed on the left side of the file grid; it only allows to the top & bottom of the file grid.
Want Filebox.PNG
Example of the layout wanted by the Designer
(1.71 KiB) Downloaded 252 times
The designer wants to be able to have multiple batch file uploads on one form (each with a different prompt for 1 or more files) & when the submit button is pressed: all the file uploads are to be done & the form submitted to the server.

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

Re: JBatchUpload API query

Post by support »

Thanks for the screenshot. For now, only top and bottom location are available.
We're working on some fixes and we could add this improvement in the same time. It can be available at the beginning of next week.

BTW: We've sent you an email with JSAPI, did you receive it?

RoyEaton
Posts: 6
Joined: Wed Jun 17, 2009 4:10 am

Re: JBatchUpload API query

Post by RoyEaton »

Thanks.

I did receive the JSAPI.

I am in the process of trying to work out what I need to install for a successful build.

I have installed:
jdk1.6.0_14
apache-ant-1.7.1

This is my first time at using a java complier & I am finding the documentation confusing.

What third party libraries or sources are needed?
Where do I put them if there is not automated install?

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

Re: JBatchUpload API query

Post by support »

Here is the link with build instructions:
http://www.jfileupload.com/products/jfi ... build.html

All required libraries are included in the premium packages (under lib/ folder). You just need ANT + JDK to build the application. You can also create a project in Eclipse IDE.

If you don't want to spend time on this then we could implement the customization for you. Contact support(at)jfileupload(dot)com to get a quote.

RoyEaton
Posts: 6
Joined: Wed Jun 17, 2009 4:10 am

Re: JBatchUpload API query

Post by RoyEaton »

I had to copy the commons-logging-1.1.1.jar downloaded from http://commons.apache.org/logging/ to the apache-ant-1.7.1/lib directory for a successful build.

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

Re: JBatchUpload API query

Post by support »

We've added the ability to move the "Select File(s)" button on the left (top, bottom or center) of the grid in JBatchUpload. Please see screenshot below and let me know if it could fit to your need.
left.jpg
Button on the top left corner
(22.96 KiB) Downloaded 248 times

RoyEaton
Posts: 6
Joined: Wed Jun 17, 2009 4:10 am

Re: JBatchUpload API query

Post by RoyEaton »

I would have expected that all the buttons would be on the left, not split into 2 button bars.

Are you making it configurable where each of the buttons appear?

The image of interface looks good.

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

Re: JBatchUpload API query

Post by support »

I understand, you would like each button on one line or on one column ?
- One line => Select File(s) | Start Upload | Cancel
- One column => Select File(s)
Start Upload
Cancel

Post Reply