English 中文(简体)
• 如何用javascript进行存档
原标题:How to read file asynchronously using javascript for fileupload

我需要阅读用户选择的将文件上载到服务器上的文件。 并将数据发送到服务器并存放在那里。 我正试图执行一个文件上载,用户可在其中停用文件上载,然后再继续。 因此,需要从随机位置读到档案。 我发现HTML-5支持这一点。 但是,它没有得到所有Browser的支持。 那么,有什么帮助?

提前感谢。

最佳回答

你们必须使用绕过浏览器安全模式的技术。

由于安全原因,浏览器中的 Java印无法进入档案系统,同样,查阅文件上载表的机会十分有限。 (例如,你不想让浏览器能够把文件上上载到遥远的服务器)

允许你在一定程度上绕过安全模式的开放源项目是。 不幸的是,在盒子之外,它不允许你做你想要的东西,制造可消费的上载。 这意味着,你要么必须放弃(开放源),要么使用一种更舒适的技术,如 Java或浏览器延伸。

EDIT:

宣布了一个新的 j花板,这将帮助你掌握你想要的东西。 http://plupload.com/

问题回答

暂无回答




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签