Any help on this?

On Oct 20, 12:05 pm, Adi <aditya.sa...@gmail.com> wrote:
> Hi,
>
> I'm developing an application that uses web2py for server and air+flex
> for user interface. Also, I'm a newbie.
> The query is related to this 
> post:http://groups.google.com/group/web2py/msg/b1c6d74aead0a401
>
> I'm trying to upload a video file throughFlex. NowFlexwill send the
> request in this format:
>
>     Content-Type: multipart/form-data; boundary=AaB03x
>     --AaB03x
>     Content-Disposition: form-data; name="Filedata";
> filename="example.flv"
>     Content-Type: application/octet-stream
>     ... contents of example.flv ...
>     --AaB03x--
>
> I tried to use this code for upload:
>
> def upload():
>     """
>     uploads an flv file to server, creates a database entry for it.
>     """
>     # reference:http://bit.ly/remoteupload
>     return SQLFORM(db.videodata, fields=['flvcopy']).accepts
> (request.vars, formname=None)
>
> where "flvcopy" is the file upload field. However, this is creating a
> new record with all fields as "None" and "flvcopy" having nothing (not
> even None).
>
> How do I match my server code to upload the given request?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to