Hi there! I'm using FileReference to download a file that is dynamically generated by a server side script, actually, it is not a file, but a string that FileReference stores in the client machine as a file. The problem is that if the services fails, FileReference receives the error message as a valid responce, and stores. I need to do some error handling, is there any way of doing that? It would be great to 'see' the response before FileReference stores it but I couldn't find how.
I just could "try {} catch (){}" php exceptions and return a "404 File not found error", FileReference throws an exception that I catch and show an error message to the user, I could only catch exception, but I can't handle php errors. Thanks in advance. -- Damián Farina