Re: [flexcoders] How to check if a file exist in the server?

2007-12-27 Thread Joseph Balderson
Try loading it, and if you get an IOError, the file does not exist. 
There could be other reasons you may get an IOError, but it's useful for 
specifically that purpose.

http://www.joeflash.ca/blog/2007/11/ioerror-2044-solution.html
___

Joseph Balderson, Flash Platform Developer | http://joeflash.ca
Writing partner, Community MX | http://www.communitymx.com
Abobe Certified Developer  Trainer


Anzer wrote:
 How to check if a file exist or not in the server?
 
  
 
 Currently am doing it with HTTPService, but I need to know if there is 
 any better mechanism since I want to check files with big sizes and I 
 think HTTPService will load the actual file into memory (not sure if 
 that’s correct, let me know if not).
 
  
 
 Thanks
 
 www.FlickrMailer.com http://www.flickrmailer.com/
 
 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] How to check if a file exist in the server?

2007-12-26 Thread Anzer
How to check if a file exist or not in the server?

 

Currently am doing it with HTTPService, but I need to know if there is any
better mechanism since I want to check files with big sizes and I think
HTTPService will load the actual file into memory (not sure if that's
correct, let me know if not).

 

Thanks

www.FlickrMailer.com http://www.flickrmailer.com/  



Re: [flexcoders] How to check if a file exist in the server?

2007-12-26 Thread Paul Andrews
- Original Message - 
  From: Anzer 
  To: flexcoders@yahoogroups.com 
  Sent: Wednesday, December 26, 2007 12:13 PM
  Subject: [flexcoders] How to check if a file exist in the server?


  How to check if a file exist or not in the server?

   

  Currently am doing it with HTTPService, but I need to know if there is any 
better mechanism since I want to check files with big sizes and I think 
HTTPService will load the actual file into memory (not sure if that's correct, 
let me know if not).



Depending on the technology that you use, you need some server-side scripting 
to interrogate the servers file system and pass back a status to say if a file 
exists or not.



Paul

   

  Thanks

  www.FlickrMailer.com