I couldn't figure out why postlet wouldn't upload on my home computer (testing server). I press upload, and the upload 'hangs' without showing any "upload progress"--forever.
I determined that this is because I use a non-standard http port in apache (actually 8046).
It's possible that postlet can handle non-80 ports (and I just have no clue how to set it up), or this is a bug.
TIA.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
<head>
<title>Applet test</title>
</head>
This script uploads the files to the server and to the database.
<br/><br/>
Drag-and-drop the pictures (jpg and jpeg only) to the applet OR choose them with <b>Add</b>.
<br/>
Press <b>Remove</b> to remove a file or files from the list.
<br/>
Press <b>Upload</b> to upload the selected files to the server and begin inserting database information.
<br/>
<body>
<applet name="postlet" code="Main.class" archive="postlet.jar" width="600" height="800" mayscript>
<param name="maxthreads" value="5" />
<param name="language" value="" />
<param name="type" value="application/x-java-applet;version=1.3.1" />
<param name="destination" value="<?=$location?>receive.php" />
<param name="backgroundcolour" value="16777215" />
<param name="tableheaderbackgroundcolour" value="14079989" />
<param name="tableheadercolour" value="0" />
<param name="warnmessage" value="false" />
<param name="autoupload" value="false" />
<param name="helpbutton" value="false" />
<param name="fileextensions" value="Image Files,jpg,jpeg" />
<param name="endpage" value="<?=$location?>insert.php" />
</applet>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've been trying to figure this out for weeks!
I couldn't figure out why postlet wouldn't upload on my home computer (testing server). I press upload, and the upload 'hangs' without showing any "upload progress"--forever.
I determined that this is because I use a non-standard http port in apache (actually 8046).
It's possible that postlet can handle non-80 ports (and I just have no clue how to set it up), or this is a bug.
TIA.
Postlet can handle none standard ports (at least I thought it could). Can you post your <applet> code here?
Whoops, I forgot to follow up. Sorry.
You were right, I just had to specify the port in my applet code
I'm using php, so I did it with a dynamic $location variable. Here's my code:
$location=explode('/',$_SERVER['PHP_SELF']);
unset($location[sizeof($location)-1]);
$location=implode('/',$location);
$location='http://'.$_SERVER['SERVER_NAME'].':<PORTNUM>'.$location.'/';
?>
<html>
<head>
<title>Applet test</title>
</head>
This script uploads the files to the server and to the database.
<br/><br/>
Drag-and-drop the pictures (jpg and jpeg only) to the applet OR choose them with <b>Add</b>.
<br/>
Press <b>Remove</b> to remove a file or files from the list.
<br/>
Press <b>Upload</b> to upload the selected files to the server and begin inserting database information.
<br/>
<body>
<applet name="postlet" code="Main.class" archive="postlet.jar" width="600" height="800" mayscript>
<param name="maxthreads" value="5" />
<param name="language" value="" />
<param name="type" value="application/x-java-applet;version=1.3.1" />
<param name="destination" value="<?=$location?>receive.php" />
<param name="backgroundcolour" value="16777215" />
<param name="tableheaderbackgroundcolour" value="14079989" />
<param name="tableheadercolour" value="0" />
<param name="warnmessage" value="false" />
<param name="autoupload" value="false" />
<param name="helpbutton" value="false" />
<param name="fileextensions" value="Image Files,jpg,jpeg" />
<param name="endpage" value="<?=$location?>insert.php" />
</applet>