can you use
navigateToURL( new URLRequest('intermediate.php'))
and do the remaining stuff in intermediate.php?
But if I use a NavigetToUrl() instead of a FileReference() I think I can't use the useful events of FileReference like ProgressEvent.PROGRESS to keep trace of how the download is going.
yes you are right, but at the moment this is what i can suggest.
or you can use filereference to download intermediate.php, and have your code in that php file to send your file.
Anyone know how to correctly open a file in a PHP and "stream it" to FileReference?
1 person found this helpful
I've tried with file_get_contents but it returns me an error on "quite big" files (like 150MB) even if the server memory limit is set to 256MB
Any other solution?
just out of interest to understand your problem...
why are you doing this? what are you trying to achieve?
On a server I have a folders containing files where access is denied to all (except PHP script).
So if I try to download through FileReference('locked-folder/filename.ext') it returns me an error.
But if I call a php script that returns the wanted file via FileReference('intermediate.php?file=filename.ext') it should work...