|
JavaPowUpload 2.1
FAQ |
Home
page Contact
support
|
JavaPowUpload Frequently Asked Questions (FAQ)
This section describes how to use JavaPowUpload applet and answers on Frequently Asked Questions.
2. How to register JavaPowUpload?
3. How to hide my SerialNumber on web page?
4. How to redirect a user to another page when upload/download process is complete?
5. How to send information about upload/download process results to a server?
5. How to send additional information to a server?
1. JavaPowUpload displays "This copy of JavaPowUpload software registered to another domain..." message . What should I do?
Unfortunately, the client-side controls like Java applet are defenseless from page source view and copying.
So starting version 2.0 JavaPowUpload includes domain name hash at the serial key.
You should enter your domain name during the purchase.
If you have a single domain license and has changed your domain, you should buy another license or pay domain change fee at the purchase page or upgrade single domain license to the enterprise (unlimited domains) at the upgrade page.
You can use JavaPowUpload on the tesing site/server for free. Just close the alert window after when it occures or remove serial number from parameters to make JavaPowUpload work as trial.
2. How to register JavaPowUpload
You can make JavaPowUpload trial to work as full by setting Common.SerialNumber parameter.
3. How to hide my SerialNumber on web page?
If you set Common.SerialNumber property on web page inside the <applet> tag , anyone can view html source code and get your SerialNumber. We understand this situation and recommend you to place SerialNumber in external xml file with properties. Specify URL to this file by Common.PropertiesFile property.
Set some filters on web server which allow to access this xml file only if it is requested by JAVA (for example, filter by user-agent header).
Starting from version 2.0 domain license will work only on the domain specified while purchase.
4. How to redirect a user to another page when upload/download process is complete?
Specify the Common.FinishUrl property to url of the page which should be loaded when upload/download process is complete.
JavaPowUpload does not post any information to this page. You may also configure a target where this page should be loaded using the Common.FinishUrl.Target property ("_self" by default).
5. How to send information about upload/download process results to a server?
JavaPowUpload can post information about download/upload process results to a server when upload/download process is complete.
Specify the Common.ResultUrl property - URL to a necessary web page. This URL will be loaded by JavaPowUpload but not by a browser.
JavaPowUpload sends the following info about each file:
- Name of the destination folder (only in download mode)
- File path. In download mode, the value is a file download url, in upload mode - full file path.
- File status.
6. How to send additional information to a server?
You can send additional information in several ways:
- a. Add info to Upload.UploadUrl property.
For example:
<param name="Upload.UploadUrl" value="uploadfiles.php?paramname1=value1¶mname2=value2">- b. Specify Upload.HttpUpload.FormName property.
In this case you can add a form to your html page and JavaPowUpload will automatically add form values to the HTTP request.
- c. Specify Upload.HttpUpload.CustomPostFields property.
Array of custom fields and values that will be added to the request separated by ;
Example:
filedName1=value1;FieldName2=value2- d. Use JavaScript addPostField(String name, String value) method.
It adds “name–value” pair to the list that will be sent as text Form items. Actually this method appends "name=value" string in the end of Upload.HttpUpload.CustomPostFields property.Example:
JavaPowUpload.addPostField("Username","JDoe");