I'm using ZendAMF with symfony and having a form in flash submit
information to a service in symfony. I wanted to know if anyone had
best practices for doing something like this.  It does include a file
which is where I'm running into the problems.

So far I have this:
http://isleshocky77.pastebin.com/f1434534c

  /**
   * Uploads an Image and sets its information
   *
   * @param array     $image_array    The Image which contains all
information about the Image
   * @param byteArray $image_file     The image file as a byteArray
   *
   * @todo Complete and test
   *
   */
  public function upload($image_array, $image_file)
  {
    $ImageForm = new ImageServiceImageForm();

    # Do something with image file
    # @todo

    $ImageForm->bind($image, $image_file);

    if ($ImageForm->isValid()) {
      $ImageForm->save();
      return "Success";
    } else {
      return "Error";
    }

  }

Thanks for any help

--
Stephen Ostrow

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to