Page 1 of 1

Upload part of a file

Posted: Tue Aug 16, 2011 5:25 pm
by karphp
Hello All,

How does one upload part of a file? I have a very large data set and I would like to upload say the first 100 MB of the file, for example?

Thanks
KP

Code: Select all

<html>
	<body>

		<form action="upload_file.php" method="post"
			enctype="multipart/form-data">
			<label for="file">Filename:</label>
			<input type="file" name="file" id="file" /> 
			<br />
			<input type="submit" name="submit" value="Submit" />
		</form>

	</body>
</html>

Code: Select all

<?php 
include('AnalyseListMode.html');

$allowedExtensions = array("lst","png");

$target = "upload/"; 
echo $_FILES['file'];


print "<pre>";
print_r($_FILES);
print "</pre>";
?>

Re: Upload part of a file

Posted: Tue Aug 16, 2011 9:41 pm
by yacahuma
i dont think we have the technology for that one. Maybe a perl or flash uploader will be able to do it.