I can give you an asp.net backend solution with one restriction. Until now, i was not able to correctly catch all of the octet-stream chunks. If you change the component to upload all in one chunk and raise the upload-limit (maxrequestlength) it works fine.
Modifiy web.config to raise the upload limit:
<httpRuntime maxRequestLength="40960" /> <!--40960 = 40 MB-->
Build a Backend-Page (for example upload.aspx)
Add the following Code to upload.aspx.vb:
Dim chunk As Integer = Request.QueryString("chunk")
Dim chunks As Integer = Request.QueryString("chunks")
Dim name As String = Request.QueryString("name")
name = name.Replace("/", "").Replace("'", "").Replace("\", "")
Dim filename As String = Request.PhysicalApplicationPath + "upload/" + name
If Request.ContentType = "application/octet-stream" Then
If (Request.ContentLength > 0) Then
Dim buffer As Byte()
Dim br As New BinaryReader(Request.InputStream)
buffer = br.ReadBytes(br.BaseStream.Length)
Dim binWriter As New BinaryWriter(File.Open(filename, FileMode.Create))
As soon as i found out how to handle the chunks i will post a new code example.
A big thank to the plupload developers. This component ist great stuff.
Last edited by chase (2010-06-20 21:13:07)