[web2py] Re: Restful api for uploading files

2017-10-19 Thread Sharjeel Ali Shaukat
Thanks its working -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups

Re: [web2py] Re: Restful api for uploading files

2017-10-19 Thread Michele Comitini
see this for sending: http://docs.python-requests.org/en/latest/user/quickstart/#post-a-multipart-encoded-file 2017-10-19 12:33 GMT+02:00 Michele Comitini : > see http://web2py.com/books/default/chapter/29/07/forms-and- > validators#SQLFORM-and-uploads > > just send

Re: [web2py] Re: Restful api for uploading files

2017-10-19 Thread Michele Comitini
see http://web2py.com/books/default/chapter/29/07/forms- and-validators#SQLFORM-and-uploads just send the file in a HTTP POST (multipart encoded) from the client Code to do it is similar to this... @request.restful() def uploader(): def POST(*args, **kwargs): # if the post is

[web2py] Re: Restful api for uploading files

2017-10-19 Thread Sharjeel Ali Shaukat
But how can i send a file for uploading On Thursday, October 19, 2017 at 9:46:47 AM UTC+5, Sharjeel Ali Shaukat wrote: > > I want to create a restful api through which i can upload files to web2py > application using android or other 3rd party applications. Any useful link > or code would be

[web2py] Re: Restful api for uploading files

2017-10-18 Thread 黄祥
had you read the book : http://web2py.com/books/default/chapter/29/10/services#Restful-Web-Services theres an example to do a post best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Restful api for uploading files

2017-10-18 Thread Mujeeb Farees
https://www.google.com/ :D -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups