bifrost
bifrost copied to clipboard
No JSON returned from server
I am trying to get JSON back from the server after uploading an image. I have created a plnkr: http://plnkr.co/edit/2Jqq8quFe7JeYfmpUBTC?p=info
Whatever I am returning from server, I get no response in Inspector. I use an old-school ASP script to store the uploaded files, but if I check in the browser it just returns nice JSON. If it helps, here is the ASP code:
<%
Set Upload = Server.CreateObject("Persits.Upload")
Upload.SetMaxSize 1048576 ' Limit files to 1MB
Upload.Save
Path = "Floorplans/" & Upload.Form("user") & "." & Upload.Form("projectName")
Response.ContentType = "application/json"
For Each File in Upload.Files
Path = Path & Right(File.Filename, 4)
File.SaveAsVirtual Path
Response.Write "[{""path"":""" & Path & """}]"
Next
%>