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
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
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
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
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)
-
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
6 matches
Mail list logo