[Webkit-unassigned] [Bug 32474] New: Selecting an application bundle (.app) shows the file size as 102 bytes
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Dec 12 12:58:05 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=32474
Summary: Selecting an application bundle (.app) shows the file
size as 102 bytes
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
URL: http://alfonsoml.blogspot.com/2009/12/uploading-app-fi
les.html
OS/Version: Mac OS X 10.6
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Forms
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: amla70 at gmail.com
Create a simple upload form with an event handler to get the file size of the
selected file
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Upload test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript">
function fileChanged(e)
{
var input = document.getElementById("upload");
console.log("Selected file: " + input.value);
console.log("File size: " + input.files[0].fileSize);
//console.log(input.files[0]);
//input.form.submit();
}
</script>
</head>
<body>
<form name="f1" method="POST" enctype="multipart/form-data">
<input type="file" name="upload" id="upload"
onchange="fileChanged(event)">
<input type="submit">
</form>
</body>
</html>
Now select an application (.app bundle) in the file picker.
Safari 4.0.4 and the beta Chrome in Mac OS X 10.6.2 shows the size of the
"file" as 102 bytes instead of the real size of the contents of that bundle.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list