rahmu wroteNow I'm looking for solutions using my own machine.
index.html :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>File Upload</title>
<style type="text/css">
<!--
body {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 16px;
line-height:34px;
text-align: center;
vertical-align: middle;
padding-top: 8px;
padding-right: 4px;
padding-bottom: 8px;
padding-left: 4px;
}
input {
margin-top:3px;
padding-top: 3px;
padding-bottom: 3px;
padding-right: 2px;
padding-left: 2px;
}
-->
</style>
</head>
<body>
Warning! Maximum File Size is <u>180 Megabytes</u>, and maximum upload time is 10 minutes.
<form enctype="multipart/form-data" action="uploader.php" method="POST">
Choose a file to upload:
<input name="uploadedfile" type="file" /><br/>
<input type="submit" value="Upload File" />
</form>
</body>
</html>
uploader.php :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Send your file to me...</title>
<style type="text/css">
<!--
body {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 16px;
line-height:20px;
text-align: center;
vertical-align: middle;
padding-top: 8px;
padding-right: 4px;
padding-bottom: 12px;
padding-left: 4px;
}
input {
margin-top:8px;
padding-top: 1px;
padding-bottom: 1px;
}
-->
</style>
</head>
<body>
<?php
// where the ulploaded file will be saved. For windows system write "C:/some/directory/" etc.
// make sure there is a trailing slash.
$target_path = "/Users/rolf/Desktop/Received/HTTP/";
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
echo "<img src='checkmark.jpg'/> <br/> <br /> The file <<span style='background-color:yellow;'> ". basename( $_FILES['uploadedfile']['name']).
" </span>> has been uploaded.
<br/>
You can go back and upload more.
";
} else{
echo "There was an <span style='background-color:red; color:white;'> ERROR </span> uploading the file!
<br />
You can press refresh to try again, or go back and try another file.";
}
?>
</body>
</html>
This will display a simple, basic file upload form, the likes of which you see on some sites, including this one (for changing your avatar).
I use this on my computer for when windows sharing doesnt work well (which happens quite often). It is reliable.
What you need to do is have apache and PHP on your computer (just download some sort of LAMP server, like for windows WAMP is easy and good, and there is XAMP too), then drop them in a web folder.
You need to drop a jpg file showing a big checkmark image (or anything else indicating success) in the same folder and call it "checkmark.jpg", and change $target_path in uploader.php (use c:/xxxx ... syntax if you are in windows) to where you want the file to be saved. Make sure it ends with a slash.
Then you must also edit php.ini for the maximum execution time (which can also be set runtime in the script) and the maximum POST request size (i think by default it is 8 mb, I set it to 180 megs here).
This is my php.ini that I use with this script:
max_execution_time = 60
max_input_time = 600
memory_limit = 256M
post_max_size = 200M
upload_max_filesize = 190M
magic_quotes_gpc = Off
(that is all it contains!)
Apparently no modifications are needed to httpd.conf to support large uploads.
Also make sure that the target directory (where the uploaded file will be saved) is writeable by the webserver user (usually www). If in doubt you can chmod it to 777, that should fix it.
Keep in mind there is no upload resume... so maybe it will not be useful, but anyway here it is if anyone wants it.
BTW if you have such a good connection, you can also open a VPS between you two, and then you will work as if you were on the same network. You really need a good latency for that though.
Sendspace looks good though.