You can upload and share files on internet using this page. The uploaded file will be saved under new name on the server and you can download it from here.
Saved file should be deleted at any time.
Provider is not responsible for files uploaded by users,
the file will be deleted without notice in case of copyrigt violation.
File upload:
Click to Browse and choose a file.
Click to Send.
The file will be saved under new name on the server and will show on this page.
global $wwwroot;
$datadir='upload/data';
// PrintA('/'.$datadir,'/'.$datadir);
?>
// ------ is file uploaded ? ------
if (!empty($_FILES['upload']['name'])) {
// ------ upload file received - begin ------
?>
Click to Send.
:
$up_name=$_FILES['upload']['name'];
$up_size=$_FILES['upload']['size'];
$up_tmp =$_FILES['upload']['tmp_name'];
echo Trans('file').": $up_name
\n"; echo Trans('fsize').": $up_size
\n"; $nametmp = strftime("upload_%Y%m%d_%H%M%S ").$up_name.".bin"; $fnupload = "$wwwroot/$datadir/$nametmp"; if (move_uploaded_file($up_tmp,$fnupload)) { echo Trans('movedto').": $fnupload
\n"; echo Trans('linkhere').": "; PrintA ("/$datadir/$nametmp",$nametmp."
\n"); } else { echo Trans('ww-ch-nmove1').$nametmp.Trans('ww-ch-nmove2')."\n"; } ?>
\n"; echo Trans('fsize').": $up_size
\n"; $nametmp = strftime("upload_%Y%m%d_%H%M%S ").$up_name.".bin"; $fnupload = "$wwwroot/$datadir/$nametmp"; if (move_uploaded_file($up_tmp,$fnupload)) { echo Trans('movedto').": $fnupload
\n"; echo Trans('linkhere').": "; PrintA ("/$datadir/$nametmp",$nametmp."
\n"); } else { echo Trans('ww-ch-nmove1').$nametmp.Trans('ww-ch-nmove2')."\n"; } ?>
:
FileList($datadir);
?>