flash - Get filesize of remotely hosted file -


I'm looking at an AS3 function to get a file's file that is being hosted on a remote webserver Tried to find some functions but did not succeed. Maybe somone could help me?

You can not do this straight through the action script before you can get the file size before you have to request to download the file. Once the download request is made, you can get the total number of bytes of the file through the LoaderInfo class. Obviously this undesirable side affects that file continues downloading.

Two solutions ... There is an XML file on a server that has the size of the files (if done manually it is a real pain in the ass, as pronounced to change the file size Are).

You can do some sort of server side solution, which you can request to get the size of a particular file. Or you have setup to generate XML for the file size of all files, maybe many server-side solutions exist. With no region of my expertise, I can not really recommend the best approach

My idea is that it is rarely worth annoying. In general, you can make a design decision to avoid getting this kind of information. He said that there can be a valid reason that warrants on server side work.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -