Click here to Skip to main content
15,888,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Well guys i have a problem using the library jquery file upload (http://blueimp.github.io/jQuery-File-Upload/[^]).

I have downloaded an example from documentation page wich is ASP.NET example (4º in the list of server-side asp) although on this solution has not a WCF (i am new at asp...) so from i can call a wcf function to save the file in the filetransferhandler.ashx - function UploadWholeFile ?

Or how can I connect to WCF?

best regards.
Posted
Updated 26-Aug-13 7:00am
v2
Comments
jkirkerx 26-Aug-13 14:07pm    
Looks like your working with a prototype, of someone that translated the PHP code to ASP.Net.

If I remember correctly, there is a client side, which is the selection of the file, and a server side, which is a iHTTPHandler. The iHTTPHandler runs in place of a webpage, in the background, and is JSON capable.

I think the client side selects the file(s) and calls the server side iHTTPHandler to do the upload work for each file, and the handler can respond back with results or things to do in JSON format.

To help you would be me actually working with the code and writing a handler for it, so I'm not going to offer a solution.

Try uploadify first to learn how it works.

This is a code project link to explain how it works
http://www.codeproject.com/Articles/46745/Upload-files-using-an-HttpHandler
hh_7 27-Aug-13 4:37am    
Thanks I will try to see how it works...anyway i need to build a wcf to save the files, and that i dont know. It´s not possible using that code just call a function from service to upload the file?

The only way I am aware of to upload a file is to actually do a post. I have implemented a jquery version but all it did was create an iframe and do the file upload from there, posting to my handler (ashx).

Javascript itself cannot do a file upload.
 
Share this answer
 
After thinking about it for a couple of days,

You probably just need to adjust the HTTpHandler, and make sure the physical path that your saving the file upload to exist.

So the Webpage holds the file upload trigger
The client activate the file upload in the browser,
You click the trigger, select the file, and the HTTP Handler uploads the file in the background. The webpage just sites there and updates any changes using JSON and Javscript when the Handler is done.

So Debug your Web App, load the HTTP Handler page code, and select the first line with a break point. F9

If the breakpoint does not hit, then the client is not pointing to the HTTP Handler. The Handler has to load in order to upload the file.

If you hit the breakpoint, then walk though it to find your error point.

If it's the path, make a simple path for testing, and then when fixed, make the path you really want.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900