Uploading image with Flash 9 and PHP - without using FileRef

  • agoldust
  • Born
  • Born
  • agoldust
  • Posts: 3

Post 3+ Months Ago

hi all guys.
i am Akbar Goldust.
i am currently creating a software, i need to upload images form my HDD to server.
i can do this with FileReference Object. with this code i can select file.

var f:FileReference;
f.browse(); // for selecting file (object)

and after that i will send that FileReference object to a PHP file and i upload via that PHP file.

but i want to upload file without using FileReference Class,
i am using File Class on Air 1.0 on Flash, and that class can provide full url of image from my HDD like: D:\My Documents\image01.jpg

there is any way to upload this file on my HDD to server without using browse() class for selecting file on Flash with PHP?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • agoldust
  • Born
  • Born
  • agoldust
  • Posts: 3

Post 3+ Months Ago

Thanks for your help guys,
i had a variable with FileReference type on another Class for uploading my image to server.
i changed type of that varriable to File , and it is done!

Thanks again.
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6243
  • Loc: Seattle, WA

Post 3+ Months Ago

Glad you got it sorted out :thumbsup:

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 21 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.