Unable to upload file via docs api

Unable to upload file via docs api

Hi,

I have able to successfully run GET operations via the API, but am having problems using POST to upload a file.

The POST command appears to be properly constructed...

apidocs.zoho.eu/files/v1/upload?authtoken=<my_token>&scope=docsapi&filename=test2.pdf&fid=<my_folderid>&content=<my_blob>

but I receive this header back...

HTTP/1.1 400 Bad Request
Server: ZGS
Date: Wed, 25 Sep 2019 10:58:29 GMT
Content-Type: text/html;charset=UTF-8
Content-Length: 1040
Connection: close
Set-Cookie: f9dcd8b159=f29ca0b29ce8262dd4e41ca9aabba1be; Path=/
X-Content-Type-Options: nosniff
X-XSS-Protection: 1
Set-Cookie: zpcc=45f95ea6-bce2-4825-ba82-59b4245fc955;path=/;Secure;priority=high
Set-Cookie: JSESSIONID=D12F3DB02D60D5EECF0106A463B56895; Path=/; Secure
vary: accept-encoding

Do I need to somehow set an option for cookies, or can I disable the cookie set request?

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation
                                              • Sticky Posts

                                              • Do more with Zoho Docs

                                                Hello Everyone, Thanks for participating in our live webinars, posing questions and giving feedback. We look forward to having you with us in the next live webinar from Zoho Docs. ​ This webinar will help you learn how to: Set up your organization profile Create organizational policies Organize files for easy access Work together on files for improved productivity Assess performance with activity reports Create appealing content with the Zoho Office Suite   Day : Thursday, 8th February 2018 Time :


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now