How yo upload a file to workdrive

How yo upload a file to workdrive

Hi, I need to upload a file from a Zoho CMR attached field to a Zoho workdrive folder.

This is the function:
map sube_pasaporte_WD(string xurl, string myurl, string carpetawd)

fichero = invokeurl
url :xurl
type :GET
info fichero;
response = zoho.workdrive.uploadFile(fichero,carpetawd,myurl,true,"zoho_workdrive");   <---- LINE 17
return response;

"Data type of the argument of the function '876' did not match the required data type of '[FILE]' en número de línea 17. Resuelva los errores y repita la operación"

if I write de xurl parameter in the navigator, ir downloads the file.

What am I doing wrong?

Thanks in advance

Best regards

      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

                                            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 WorkDrive Resources

                                                                      Zoho Campaigns Resources

                                                                        Zoho CRM Resources

                                                                        • CRM Community Learning Series

                                                                          CRM Community Learning Series

                                                                        • Tips


                                                                        • Functions


                                                                        • Meetups


                                                                        • Kbase


                                                                        • Resources


                                                                        • Digest


                                                                        • CRM Marketplace

                                                                          CRM Marketplace

                                                                        • MVP Corner

                                                                          MVP Corner

                                                                            Design. Discuss. Deliver.

                                                                            Create visually engaging stories with Zoho Show.

                                                                            Get Started Now