Re: wodWebServer ActiveX Upload Large file - WeOnlyDo Discussion board

Re: wodWebServer ActiveX Upload Large file (General questions)

by Micke, Monday, April 26, 2010, 17:42 (5324 days ago) @ Micke

Hello again,

I have done som testing with the new upload functions in version 1.5.3. Overall a very nice implementation, but with some restrictions.

The IwodWebNotify_RequestHeaders() Event is fired before any data arrives. Filename and file size can be checked here, but I have NOT found a way to cancel/prevent the request within this event. User.Response.StatusCode = Forbidden does not cancel the upload.

IwodWebNotify_UploadFilename is fired ONLY if posted header contain Content-Type: multipart/form-data with boundary specified. Many AJAX upload samples does not use these headers.Part. FileName is a nice feature where the user can specify upload destination but if the file can't be created (e.g. invalid filename) wodWebServer will crash.

IwodWebNotify_RequestDone() is fired when upload is completed, thus its too late to cancel the upload from this event.

Overall nice work but with potential for improvements. Please let me know if have misunderstood some things.

Michael


Complete thread: