flash mx file upload

  • Started
  • Last post
  • 7 Responses
  • spk

    has anyone seen anything of the sort - which checks the size of the file to be uploaded on the client?

    thanks in advance

  • unfittoprint0

    you mean with a flash based form?

    If so, there are security reasons that don't allow that. I'm doing a project where such thing is needed, and the only way to achieve this (flash-based) is using some sort of hidden layers and javascript 'trickery'. If you just want to know the size of the file you might use an external form who communicates with the flash file...

  • frankbb0

    the best know way is to do this using a server side or client side script i.e. asp/php/jsp/cfm etc..

    I suppose you could check a jpeg or swf, but thats about it.. you could do this by obj.getBytesTotal();

    other than that??

  • spk0

    thanks for the feedback - im just looking for a way to check the size of the file on the client before making a call to server. thats it. i can handle the upload through whatever method.

    any further thoughts are appreciated.

    peace.

  • freshmode0

    Thanks unfittoprint.

    I am not really concerned with the file size. I just need to be able to upload a file. I would only need the script. Unless it is important to show how large the file is. The files would be simple word docks that wouldn't go over 1 MB.

    Can just the upload or attach function be done in flash?

    This is new to me so I need the help and appreciate it.

    I would even be wiling to pay someone some change for the help. I have the entire project finished. This is the only thing holding me up.

    word!

  • freshmode0

    Thanks unfittoprint.

    I am not really concerned with the file size. I just need to be able to upload a file. I would only need the script. Unless it is important to show how large the file is. The files would be simple word docks that wouldn't go over 1 MB.

    Can just the upload or attach function be done in flash?

    This is new to me so I need the help and appreciate it.

    I would even be wiling to pay someone some change for the help. I have the entire project finished. This is the only thing holding me up.

    word!

  • unfittoprint0

    I haven't got to that part in my project although I did a test with a quite complex way to keep the whole process within Flash (in the user eyes ;-p). It require frames (aaargh) and a shitload of javascript... with a PHP backend, of course.

    But I would try Yamago's component, for what I see, it seems to do the trick. Beware of the requirements, the latest player is needed (6.065 or higher) and may not work with all OS/browsers...

  • freshmode0

    pardon my triple re ply.

    I am working with this new mozilla browser and it is having serious issues.

    I think I will just convince the client that the best way to do this is to switch over to some html and have the form be filled out their. I am creating 3 forms on this cd-rom and only 1 attaches a file. That can be done really easily in html. It will be quick for the eye. Not a big problem. I would just rather do it in flash.

    If someone can make it happen for me in an easy way I would be willing to feed you for a few days or something. A couple $$$. I really need to make this happen.

    Can this be done in director? I have never used Director but assume it is a lot more powerful then flash.

    If you guys can help I would appreciate it.

    I will look into that guys application.

    Thanks