I'm trying to upload a file to a dropbox account and I'm having a little problem. Let's see.
I have created a new connector to upload a file, using the RMP tutorial about OAuth, and the dropbox API doc, and it's "working" now.
Exactly I have got to upload a file, and upload it to the path selected, but, when I look into the uploaded file on dropbox it has not the content I supossed. I'm filling the contente field in my connector with ${content} cause I understand this field represents the file I want to upload, however I don't know what should I put in there. I've tried with the URL , but then the file content is the URL (not the file pointed by the URL), and I've tried with the id of the file, and something like ${the_id_of_my_file} in a desperate try, but I've always got the same result :p
How can I upload a file to Dropbox appropiately?
Thanks in advance and regards.
Thanks again.
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/d53b27df-1f91-4177-89ff-3b50fbf2e713%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
Well, I've tried the file_content function and The result I get is the same result.
I've changed the connector configuration too, in order to get the most similar config to yours (By the way, What does the multipart/related content type mean?)
I attach images for a better explanation.
Besides, if I get the file_content method works fine, I guess that this function will only work with text files (.txt, .js, etc.) won't it?
So when I reach the objective of uploading a text file, What should I do if want to upload to dropbox a pdf document?
(In fact, this functionality belongs to a process I'm building that firtly creates a PDF from a group of variables, and then uploads it to dropbox).
So, please, help me with the use of file_content, and with the issue of How to upload to dropbox a PDF.
Thanks in advance and regards.
On Wednesday, July 29, 2015 at 2:24:15 PM UTC+2, Pankaj Kumar wrote:
> Hi,
>
>
> In the previous mail screen print "file_content" is the variable in which we get the content of the file using the free marker "file_content" method.
>
>
>
>
>
> Thank you,
> Pankaj Kumar
> Fujitsu RunMyProcess Support
>
>
> On Wed, Jul 29, 2015 at 5:51 PM, Pankaj Kumar <pku...@runmyprocess.com> wrote:
>
> Hi Javier,
>
>
> Dropbox upload file API treat request body as the content of the file,one approach is, you can use the "file_content" method to get the content of the file and pass it in the connector, Please refer to the screen print.
>
>
> I am exploring the API/RMP Integration to get other approach to avoid the use of the method "file_content", will update you soon on this.
>
>
>
>
>
>
>
>
>
>
>