开发者

Using ASP.NET handler to upload files

I am using Plupload for multiple file uploads. The files are sent to a ashx handler which saves them. However, I also have a Fileupload control for users who do not have flash or javascript enabled. I am wanting to use the Handler to also handle uploads from the fileuplaod control so all my logic is kept in one place. Does anyone know if it is possible to send the file from the fileupload control to a handler?

开发者_如何学Go

Thanks in advance


I am not sure about how the fileupload control works. But you can try to create a workaround and have your logic in one place i.e to create a class that handles the uploaded file. Now both your handler and fileupload control will use this class to do the necessary with your files.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜