{"id":148565,"date":"2023-07-27T15:09:20","date_gmt":"2023-07-27T06:09:20","guid":{"rendered":"https:\/\/support.questetra.com\/?p=148565"},"modified":"2023-07-27T15:09:23","modified_gmt":"2023-07-27T06:09:23","slug":"dropbox-upload-202307","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/addons\/dropbox-upload-202307\/","title":{"rendered":"Upload to Dropbox"},"content":{"rendered":"\n<h4 class=\"wp-block-heading has-background\" style=\"background-color:#ffccff;margin-top:var(--wp--preset--spacing--30);margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--20);padding-bottom:0;padding-left:var(--wp--preset--spacing--20)\"><strong>Upload to Dropbox<\/strong><\/h4>\n\n\n\n<p class=\"has-text-align-right has-background has-small-font-size mt-0 pt-0 wp-block-paragraph\" style=\"background-color:#ffccff;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:var(--wp--preset--spacing--30);padding-bottom:0;padding-left:var(--wp--preset--spacing--30)\"><a href=\"https:\/\/support.questetra.com\/en\/addons\/dropbox-upload-202307\/\">Dropbox \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/a><\/p>\n\n\n\n<p class=\"has-background mt-0 pt-0 wp-block-paragraph\" style=\"background-color:#fff0ff;margin-top:0;margin-right:0;margin-bottom:var(--wp--preset--spacing--60);margin-left:0;padding-top:var(--wp--preset--spacing--20);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--40)\">Upload files to specified directory in Dropbox. You can specify whether to overwrite files with the same name.<\/p>\n\n\n\n<figure class=\"wp-block-image alignright has-custom-border is-style-default\"><img decoding=\"async\" src=\"data:image;base64,\niVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABEdJREFUWEfF\nV21sU1UYfk7b9WNtNzYEyVpkgRn50JgtfuIAl6ESDArEaDRqIviDGUN0IhPcRrf5haIYMUJMxg9c\nxIRgNEEDyCJxYMQQFhI\/iFnIxG5Oott627rbrr3HvLe7d72fG4rp+Xve85znvOd53vcchgIPNu39\nI4PFyGbXw+GoA0c1OK8EY2Xyes5HwFg\/GHohSV\/D6fwUkYq\/p4M9NYHI5Tng6SZwtgmAdzqgAEQw\nvg\/MvROR2UN2a+wJtEQ3AWwXGPzT3FgbxpEE+BZ0hPdZrbcm0Dr4AcAb\/tXGhkVsL9ornjHDMifQ\nOvAxgEevzuYqykG0hx7TYxoJ2Jw8XOJELCUhnuKm3KaaB4yZ0BKgO2dsrxl684ogGu\/0YzAu4dkv\nYjjZn9KEba0N4KXaAH5PSGg8GsOxPu28Gsx5Q74mJgmQ2rPjfXrB3V3pwdurSlA9pwhsIjoqZLHt\nhICu82My7nurS\/F0TTF8RbkAMcNx+CcRDUdGjdkiYTqLqhR3TBLYEd0Nzp5TmAY9DK\/Wl+DJm30o\n9ToMSYmJEt44lcAtFW6sXeiFUxfCOXBxJIPXexLoPKcrCYy\/i7bw8wSaI0BFRuJ\/5fv84ENlePhG\nHxwWPiECh34UMb\/cieXzPHAZOcrQQoqjuVvAnjPJ\/EOIcLCZVKxy8C2\/PQ7m+Cg\/gjLQ+eAMrFvk\n04DTyXqHxvHCUUHVQePSAJpqA5jt17IYGctl6c1TCaOsuPQEOuZ25QjsGOgExwYz8b1SH8Tm2wMg\nQpeTEt75NoGdJoDkgLfuLcHaRV54XQx9wxlsOSbg8wuiuZsZ9qMttDFHoHXgHIBqK99vXx7AbSG3\nrH4SoN1Yc4MXjUv9aO6O4\/SltF1oL9pDNRNXEB1WG4tuScOtfkTqgphV7JBTv\/2EYGkxuga6Doo9\nOziOzV\/G8F3UggQ1sI5wuZIB08qit5disc9+FvHicUHNxn1VHry2UmtVitXb1ZCO9tCEs1sHDAQO\nPVKGdQt9BnsRiGIx0sJN1xZZWlVxQdvJuKwdawItxisgUX34wAzcs8DcYhkJOPKLiKpyF5bMcqlF\nKn8Tsur73ydlPRiG7gosRbixpljWABFSBvWCry6mUFfpxlBCwh\/JLJZd51GzRRnquZRG03HBWgNA\nnghtbEibKhZbv9iLUZGj59c0Vl\/vUUsv2fNMNA3SAhWeXafNrarJgsaGJoVIn7JvNlyDC39msKDc\niRXzJk+bn5VPfhiT56kX3N81bGtXaAqRSSnWr969qhRPVZv3BSXWtv5rAXWlWK6G2mZkRv+OsBsd\n9UFQh9TXfhLcgfNjeLlbsHwvqJiGZkQzFu3YjAgJc9uyAOaXuZDlkHtCS3fcTnCTMJbtmEJsHiR6\nItQbtt4VQP9o1thu7W7f8kGiLLqqj1E9k6meZCqJQj5K\/5dMXOmzXCFR0I+JQqKgX7N8DRXsc2pf\nUP\/z7D\/jTfQwb2TeVgAAAABJRU5ErkJggg==\n\" alt=\"Auto Step icon\" class=\"has-border-color has-ast-global-color-6-border-color\" style=\"border-width:0.5em\"\/><\/figure>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details open><summary class=\"wp-block-coblocks-accordion-item__title\">Configs for this Auto Step<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<dl style=\"0 0 -0.7em 0\">\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_OAuth2<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C1: OAuth2 Setting<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_Directory<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C2: Directory on Dropbox (e.g. &#8220;\/aaa\/bbb\/&#8221;)<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_uploadedFile<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C3: FILE DATA for Upload<span style=\"color:#990000;\"> *<\/span><\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_isOverWrite<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C4: is overwrite the existing file<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_fileId<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C5: STRING DATA for file ids (update)<\/dd>\n<dt style=\"font-weight: 300; font-size: 50%; margin: -1em 0 0 0; color: #aaa;\">conf_fileUrl<\/dt><dd style=\"margin: -0.5em 0 0.1em 1em\">C6: STRING DATA for file urls (update)<\/dd>\n\n<\/dl>\n<\/div><\/details><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Script (click to open)<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\n\/\/ Upload to Dropbox via DropboxAPI v2 (ver. 202307)\n\n\/\/ OAuth2 config sample at [OAuth 2.0 Setting]\n\/\/ - Authorization Endpoint URL: https:\/\/www.dropbox.com\/oauth2\/authorize?token_access_type=offline\n\/\/ - Token Endpoint URL: https:\/\/api.dropboxapi.com\/oauth2\/token\n\/\/ - Scope: \n\/\/ - Consumer Key: (Get by Dropbox)\n\/\/ - Consumer Secret: (Get by Dropbox)\n\nconst SIZE_LIMIT = 94371840; \/\/File size border of Questetra (90MB)\n\nmain();\nfunction main(){\n\n  \/\/\/\/ == \u5de5\u7a0b\u30b3\u30f3\u30d5\u30a3\u30b0\u306e\u53c2\u7167 \/ Config Retrieving ==\n  const oauth2        = configs.get( &quot;conf_OAuth2&quot; ) + &quot;&quot;;\n  const directory     = configs.get( &quot;conf_Directory&quot; ) + &quot;&quot;;\n  const isOverWrite   = configs.getObject( &quot;conf_isOverWrite&quot; );\n  const idDataDef     = configs.getObject(&quot;conf_fileId&quot;);\n  const urlDataDef    = configs.getObject(&quot;conf_fileUrl&quot;);\n\n  \/\/\/\/ == \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u306e\u53c2\u7167 \/ Data Retrieving ==\n  const files = engine.findData(configs.getObject(&quot;conf_uploadedFile&quot;));\n  if (files === null) {\n    engine.log(&quot;no file&quot;);\n    return;\n  }\n\n  \/\/\/\/ == \u6f14\u7b97 \/ Calculating ==\n  checkDirectory(directory)\n  checkFile(files, idDataDef, urlDataDef);\n\n  let uploadedFileData = [[], []]; \/\/0:ID,1:URL\n\n  for (let i = 0; i &lt; files.size(); i++) {\n    engine.log(&quot;upload filename:&quot; + files.get(i).getName());\n    upload(oauth2, files.get(i), directory, uploadedFileData, isOverWrite);\n  }\n\n  \/\/\/\/ == \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u3078\u306e\u4ee3\u5165 \/ Data Updating ==\n  setData(idDataDef, uploadedFileData[0]);\n  setData(urlDataDef, uploadedFileData[1]);\n}\n\n\/**\n * \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u5148\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\u306e\u30c1\u30a7\u30c3\u30af\n * @param {String} directory  \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u5148\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\n *\/\nfunction checkDirectory(directory) {\n  \/\/\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30c1\u30a7\u30c3\u30af\u3001\u30b9\u30e9\u30c3\u30b7\u30e5\u59cb\u307e\u308a\u30fb\u30b9\u30e9\u30c3\u30b7\u30e5\u7d42\u308f\u308a\u304b\u3069\u3046\u304b\n  const regex = \/^\\\/.*\\\/$\/;\n  if (!(regex.test(directory))) {\n    throw &quot;Invalid directory&quot;;\n  }\n}\n\n\/**\n * \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3088\u3046\u3068\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u6570\u30fb\u30b5\u30a4\u30ba\u304c\u9069\u5207\u304b\u3069\u3046\u304b\u30c1\u30a7\u30c3\u30af\n * @param {Array&lt;File&gt;} files  \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3088\u3046\u3068\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u914d\u5217\n * @param {ProcessDataDefinitionView} idDataDef  ID \u3092\u4fdd\u5b58\u3059\u308b\u30c7\u30fc\u30bf\u9805\u76ee\u306e ProcessDataDefinitionView\n * @param {ProcessDataDefinitionView} urlDataDef  URL \u3092\u4fdd\u5b58\u3059\u308b\u30c7\u30fc\u30bf\u9805\u76ee\u306e ProcessDataDefinitionView\n *\/\nfunction checkFile(files, idDataDef, urlDataDef) {\n  const fileNum = files.size(); \/\/number of files\n  if (fileNum &gt; httpClient.getRequestingLimit()) {\n    throw &quot;Number of requests is over the limit&quot;;\n  }\n\n  \/\/1\u3064\u3067\u3082\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u30aa\u30fc\u30d0\u30fc\u3042\u3063\u305f\u3089\u4e2d\u6b62\n  files.forEach(file =&gt; {\n    engine.log(`Uploading: ${file.getName()}`);\n    if (file.getLength() &gt; SIZE_LIMIT) {\n      throw &quot;There is a file over the size limit&quot;;\n    }\n  });\n\n  checkfileNum(idDataDef, fileNum);\n  checkfileNum(urlDataDef, fileNum);\n}\n\n\/**\n * \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u304c\u8907\u6570\u3067 \u30d1\u30b9\u30fbURL \u51fa\u529b\u5148\u306e\u30c7\u30fc\u30bf\u9805\u76ee\u304c\u5358\u4e00\u884c\u306a\u3089\u30a8\u30e9\u30fc\u306b\u3059\u308b\n * @param {ProcessDataDefinitionView} dataDef  \u30c7\u30fc\u30bf\u9805\u76ee\u306e ProcessDataDefinitionView\n * @param {Number} fileNum  \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3088\u3046\u3068\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u500b\u6570\n *\/\nfunction checkfileNum(dataDef, fileNum) {\n  if (dataDef !== null) {\n    \/\/Multiple Judge\n    if (dataDef.matchDataType(&quot;STRING_TEXTFIELD&quot;) && fileNum &gt; 1) {\n      throw &quot;Multiple files are set though the Data Item to save the output is Single-line String.&quot;\n    }\n  }\n}\n\n\/**\n * \u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3002\u4e00\u56de\u306b\u3064\u304d\u4e00\u3064\u306e\u307f\u3002\n * @param {String} oauth2  OAuth2 \u8a2d\u5b9a\n * @param {File} file  \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u30d5\u30a1\u30a4\u30eb\n * @param {String} directory  \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u5148\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\n * @param {Array&lt;Array&lt;String&gt;&gt;} uploadedFileData  \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u60c5\u5831\u3092\u683c\u7d0d\u3059\u308b\u4e8c\u6b21\u5143\u914d\u5217\n * @param {Boolean} isOverWrite  \u540c\u540d\u30d5\u30a1\u30a4\u30eb\u3092\u4e0a\u66f8\u304d\u3059\u308b\u304b\n *\/\nfunction upload(oauth2, file, directory, uploadedFileData, isOverWrite) {\n\n  const uri = &quot;https:\/\/content.dropboxapi.com\/2\/files\/upload&quot;;\n  let json;\n  if ( isOverWrite ) {\n    json = &#39;{&quot;path&quot;: &quot;&#39; + directory + escaper.escapeJson(file.getName()) + &#39;&quot;, &quot;mode&quot;: &quot;overwrite&quot;}&#39;;\n  } else {\n    json = &#39;{&quot;path&quot;: &quot;&#39; + directory + escaper.escapeJson(file.getName()) + &#39;&quot;}&#39;;\n  }\n  \/\/engine.log(&quot;json:&quot;+json);\n\n  let response = httpClient.begin()\n    .authSetting( oauth2 )\n    .header( &quot;Dropbox-API-Arg&quot;, json )\n    .body( file, &quot;application\/octet-stream&quot; )\n    .post( uri );\n  engine.log(&quot;---POST request--- &quot; + response.getStatusCode());\n  const responseString = response.getResponseAsString();\n  engine.log(responseString);\n\n  const status = response.getStatusCode();\n  if( status &gt;= 300 ){\n    engine.log(&quot;Failed to upload status:&quot; + status);\n    throw `Failed to upload\\nstatus: ${status}\\nfile: ${file.getName()}`;\n  }\n  engine.log(&quot;upload successful&quot;);\n  addOutputToArray(responseString, uploadedFileData);\n}\n\n\/**\n * \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u30c7\u30fc\u30bf\u306eID\u3068URL\u3092\u914d\u5217\u306b\u30bb\u30c3\u30c8\u3059\u308b\u3002\n * @param {String} responseStr  \u9001\u4fe1\u6642\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u30c6\u30ad\u30b9\u30c8\u51fa\u529b\u3057\u305f\u3082\u306e\n * @param {Array&lt;String&gt;} uploadedFileData  \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u60c5\u5831\u304c\u683c\u7d0d\u3055\u308c\u308b\u914d\u5217\n *\/\nfunction addOutputToArray(responseStr, uploadedFileData) {\n  const json = JSON.parse(responseStr);\n  uploadedFileData[0].push(json.id);\n  uploadedFileData[1].push(`https:\/\/www.dropbox.com\/home${json.path_display}`);\n}\n\n\/**\n * \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u30c7\u30fc\u30bf\u306e\u30d1\u30b9\u3068URL\u3092\u30c7\u30fc\u30bf\u9805\u76ee\u306b\u51fa\u529b\u3059\u308b\u3002\n * @param {ProcessDataDefinitionView} dataDef  \u30c7\u30fc\u30bf\u9805\u76ee\u306e ProcessDataDefinitionView\n * @param {Array&lt;String&gt;} uploadedFileData  \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u60c5\u5831\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u914d\u5217\n *\/\nfunction setData(dataDef, uploadedFileData) {\n  if (dataDef !== null) {\n    engine.setData(dataDef, uploadedFileData.join(&#39;\\n&#39;));\n  }\n}\n\n<\/code><\/pre><\/div>\n<\/div><\/details><\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--30)\"><span>Download<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/drive.google.com\/file\/d\/1YLzf_NCjoyfx1VrH8OROgBStmktFKbLo\/view?usp=drivesdk\" target=\"_blank\">Dropbox-upload-202307.xml<\/a>\n<ul class=\"wp-block-list\">\n<li>2023-07-10 (C) Questetra, Inc. (MIT License)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<div class=\"has-small-font-size\" style=\"text-align: right;\"><div style=\"display: inline-block; background: #FBE7DD; text-align: center;\">\n<span class=\"material-icons\">warning<\/span> Freely modifiable JavaScript (ECMAScript) code. No warranty of any kind.<br>\n(Installing <em><strong>Addon Auto-Steps<\/strong><\/em> are available only on the <em><strong><span style=\"color: #1970B9\">Professional<\/span><\/strong><\/em> edition.)\n<\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--30)\"><span>Notes<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>How to register an application on the Dropbox side\n\n\n<ul class=\"wp-block-list\">\n<li>Visit the Dropbox developer site (<a href=\"https:\/\/www.dropbox.com\/developers\" rel=\"nofollow\">https:\/\/www.dropbox.com\/developers<\/a>) and log in<\/li>\n\n\n\n<li>Under &#8216;1. Choose an API&#8217;, select &#8216;Scoped access&#8217;<\/li>\n\n\n\n<li>Under &#8216;2. Choose the type of access you need&#8217;, select either &#8216;App folder&#8217; or &#8216;Full Dropbox&#8217; depending on the intended use<\/li>\n\n\n\n<li>Under &#8216;3. Name your app&#8217;, enter a name (any name is OK)<\/li>\n\n\n\n<li>Create an app under &#8216;Create app&#8217;<\/li>\n\n\n\n<li>In the Settings tab, enter &#8216;<a href=\"https:\/\/s.questetra.net\/oauth2callback&#038;#8217\" rel=\"nofollow\">https:\/\/s.questetra.net\/oauth2callback&#038;#8217<\/a>; in &#8216;Redirect URIs&#8217; and add it<\/li>\n\n\n\n<li>Note down the App key and App secret in the Settings tab (used in the Questetra side settings)<\/li>\n\n\n\n<li>In the Permission tab, click &#8216;files.content.write&#8217; (authorisation required) and Submit<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>How to Configure HTTP Authentication Settings on the Questetra side<br>\u203b Reference page: Understanding HTTP Authorization Settings (<a href=\"https:\/\/support.questetra.com\/developer-blog\/http-auth-setting\/\">https:\/\/support.questetra.com\/developer-blog\/http-auth-setting\/<\/a>)\n\n<ul class=\"wp-block-list\">\n<li>Select &#8216;OAuth2&#8217;<\/li>\n\n\n\n<li>Name: Dropbox (any name is acceptable as long as it matches the OAuth2 settings in the add-on XML on the workflow application side)<\/li>\n\n\n\n<li>Authorized endpoint URL: <a href=\"https:\/\/www.dropbox.com\/oauth2\/authorize?token_access_type=offline\" rel=\"nofollow\">https:\/\/www.dropbox.com\/oauth2\/authorize?token_access_type=offline<\/a><\/li>\n\n\n\n<li>Token endpoint URL: <a href=\"https:\/\/api.dropboxapi.com\/oauth2\/token\" rel=\"nofollow\">https:\/\/api.dropboxapi.com\/oauth2\/token<\/a><\/li>\n\n\n\n<li>Scope: (not specified)<\/li>\n\n\n\n<li>Client ID: (Specify the App key obtained by the Dropbox side settings)<\/li>\n\n\n\n<li>Client secret: (Specify the App secret obtained from the Dropbox side configuration)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>An error occurs if you try to upload a file with the same name while the &#8220;Overwrite existing files?&#8221; option is disabled.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--30)\"><span>Capture<\/span><\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"726\" height=\"630\" data-attachment-id=\"148577\" data-permalink=\"https:\/\/support.questetra.com\/en\/addons\/dropbox-upload-202307\/attachment\/capture-dropbox-upload-202307-config-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/capture-dropbox-upload-202307-config-en.jpg?fit=895%2C777&amp;ssl=1\" data-orig-size=\"895,777\" data-comments-opened=\"0\" data-image-title=\"capture-dropbox-upload-202307-config-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/capture-dropbox-upload-202307-config-en.jpg?fit=726%2C630&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/capture-dropbox-upload-202307-config-en-726x630.jpg?resize=726%2C630&#038;ssl=1\" alt=\"\" class=\"wp-image-148577\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/capture-dropbox-upload-202307-config-en.jpg?resize=726%2C630&amp;ssl=1 726w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/capture-dropbox-upload-202307-config-en.jpg?resize=363%2C315&amp;ssl=1 363w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/capture-dropbox-upload-202307-config-en.jpg?resize=768%2C667&amp;ssl=1 768w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/capture-dropbox-upload-202307-config-en.jpg?w=895&amp;ssl=1 895w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/figure>\n\n\n\n\n\n<h3 class=\"wp-block-heading\" style=\"margin-top:var(--wp--preset--spacing--30)\"><span>See also<\/span><\/h3>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-questetra-support wp-block-embed-questetra-support\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"1Ix1LxbIip\"><a href=\"https:\/\/support.questetra.com\/en\/templates\/company-regulation-flow-20230726\/\">\u793e\u5185\u898f\u7a0b\u6539\u5ec3\u30d7\u30ed\u30bb\u30b9, Dropbox\u51fa\u529b<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u793e\u5185\u898f\u7a0b\u6539\u5ec3\u30d7\u30ed\u30bb\u30b9, Dropbox\u51fa\u529b&#8221; &#8212; Questetra Support\" src=\"https:\/\/support.questetra.com\/ja\/templates\/company-regulation-flow-20230726\/embed\/#?secret=oIHfShdM6J#?secret=1Ix1LxbIip\" data-secret=\"1Ix1LxbIip\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Upload files to specified directory in Dropbox. You can specify whether to overwrite files with the same name.<\/p>\n","protected":false},"author":9,"featured_media":148568,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_uag_custom_page_level_css":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[168],"tags":[407],"faq_section":[],"class_list":["post-148565","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-addons","tag-dropbox-api"],"jetpack_publicize_connections":[],"uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?fit=1200%2C675&ssl=1",1200,675,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?fit=560%2C315&ssl=1",560,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?fit=768%2C432&ssl=1",768,432,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?fit=1024%2C576&ssl=1",1024,576,true],"1536x1536":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?fit=1200%2C675&ssl=1",1200,675,true],"2048x2048":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?fit=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-portrait-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?resize=900%2C675&ssl=1",900,675,true],"newspack-article-block-square-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?resize=800%2C600&ssl=1",800,600,true],"newspack-article-block-portrait-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?resize=600%2C675&ssl=1",600,675,true],"newspack-article-block-square-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?resize=800%2C675&ssl=1",800,675,true],"newspack-article-block-landscape-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?resize=600%2C450&ssl=1",600,450,true],"newspack-article-block-portrait-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?resize=450%2C600&ssl=1",450,600,true],"newspack-article-block-square-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?resize=600%2C600&ssl=1",600,600,true],"newspack-article-block-landscape-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?resize=400%2C300&ssl=1",400,300,true],"newspack-article-block-portrait-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?resize=300%2C400&ssl=1",300,400,true],"newspack-article-block-square-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?resize=400%2C400&ssl=1",400,400,true],"newspack-article-block-landscape-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?resize=200%2C150&ssl=1",200,150,true],"newspack-article-block-portrait-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?resize=150%2C200&ssl=1",150,200,true],"newspack-article-block-square-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?resize=200%2C200&ssl=1",200,200,true],"newspack-article-block-uncropped":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?fit=1200%2C675&ssl=1",1200,675,true]},"uagb_author_info":{"display_name":"Tsuyoshi Kusaka","author_link":"https:\/\/support.questetra.com\/en\/author\/kusaka0211\/"},"uagb_comment_info":1,"uagb_excerpt":"Upload files to specified directory in Dropbox. You can specify whether to overwrite files with the same name.","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-CEd","jetpack-related-posts":[{"id":67406,"url":"https:\/\/support.questetra.com\/en\/addons\/dropbox-upload\/","url_meta":{"origin":148565,"position":0},"title":"Upload to Dropbox","author":"Hirotaka NISHI","date":"2016-10-05","format":false,"excerpt":"Download Dropbox-upload.xml Capture Notes It requires registering Apps at box Developers in advanceWhen specifying a root folder, set the folder ID as \u201c0\u201dIf specified a folder ID which does not exist, it results in an errorIf there are filename conflicts, it results in an error* https:\/\/{sub-domain}.app.box.com\/files\/0\/f\/11603741795\/Folder-Name","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2016\/10\/dropbox-upload-header.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2016\/10\/dropbox-upload-header.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2016\/10\/dropbox-upload-header.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2016\/10\/dropbox-upload-header.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2016\/10\/dropbox-upload-header.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":148582,"url":"https:\/\/support.questetra.com\/en\/templates\/company-regulation-flow-20230726\/","url_meta":{"origin":148565,"position":1},"title":"Internal Regulation Revision App, Dropbox Output","author":"Tsuyoshi Kusaka","date":"2023-07-31","format":false,"excerpt":"The officer in charge approves the drafted internal regulation file, which is then approved by the board of directors. After approval, the file is automatically saved in a designated folder on Dropbox and disseminated via email.","rel":"","context":"In &quot;Workflow Apps&quot;","block_context":{"text":"Workflow Apps","link":"https:\/\/support.questetra.com\/en\/category\/templates\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/company-regulation-flow-20230726-capture-en.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/company-regulation-flow-20230726-capture-en.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/company-regulation-flow-20230726-capture-en.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/company-regulation-flow-20230726-capture-en.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/company-regulation-flow-20230726-capture-en.jpg?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":75346,"url":"https:\/\/support.questetra.com\/en\/templates\/online-estimate-storage-flow-20161011\/","url_meta":{"origin":148565,"position":2},"title":"Online Estimate Storage Flow","author":"Hirotaka NISHI","date":"2022-12-21","format":false,"excerpt":"Stores quotation PDF automatically to share. A quotation PDF is automatically generated after the submittee, details and total amount are entered at the Task of \"Drafting Quotation\". After the quotation is submitted, the quotation which succeeded in the contract is automatically uploaded to the Dropbox folder.","rel":"","context":"In &quot;Workflow Apps&quot;","block_context":{"text":"Workflow Apps","link":"https:\/\/support.questetra.com\/en\/category\/templates\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/03\/eye-catch-online-estimate-storage-flow-20161011-218-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/03\/eye-catch-online-estimate-storage-flow-20161011-218-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/03\/eye-catch-online-estimate-storage-flow-20161011-218-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/03\/eye-catch-online-estimate-storage-flow-20161011-218-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/03\/eye-catch-online-estimate-storage-flow-20161011-218-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":75378,"url":"https:\/\/support.questetra.com\/en\/developer-blog\/onedrive-questetra\/","url_meta":{"origin":148565,"position":3},"title":"How to Output Files from Cloud-based Workflow Questetra to OneDrive","author":"Tsuyoshi Kusaka","date":"2019-03-06","format":false,"excerpt":"Summary of connection settings (file output) for Questetra BPM Suite to OneDrive","rel":"","context":"In &quot;Questetra Developers Blog&quot;","block_context":{"text":"Questetra Developers Blog","link":"https:\/\/support.questetra.com\/en\/category\/developer-blog\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/03\/onedrive-questetra-1200x675-1.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/03\/onedrive-questetra-1200x675-1.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/03\/onedrive-questetra-1200x675-1.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/03\/onedrive-questetra-1200x675-1.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2019\/03\/onedrive-questetra-1200x675-1.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":74763,"url":"https:\/\/support.questetra.com\/en\/developer-blog\/google-drive-items\/","url_meta":{"origin":148565,"position":4},"title":"Utilizing Google Drive from Workflow &#8211; Sending files to people outside the company","author":"Hirotaka NISHI","date":"2020-10-30","format":false,"excerpt":"Google Drive is a cloud storage service offered by Google. I will explain automatic Step for utilizing Google Drive in a Workflow App.","rel":"","context":"In \"Google Drive API v3\"","block_context":{"text":"Google Drive API v3","link":"https:\/\/support.questetra.com\/en\/tag\/google-drive-api-v3\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/google-drive-questetra.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/google-drive-questetra.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/google-drive-questetra.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/google-drive-questetra.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/10\/google-drive-questetra.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":96192,"url":"https:\/\/support.questetra.com\/en\/developer-blog\/onedrive-workflow-tutorial\/","url_meta":{"origin":148565,"position":5},"title":"Utilising OneDrive from Your Workflow","author":"Hirotaka NISHI","date":"2020-10-13","format":false,"excerpt":"We will describe some automated Tasks related to Microsoft 365 OneDrive for Business. Users can create folders and upload files to OneDrive.","rel":"","context":"In &quot;Questetra Developers Blog&quot;","block_context":{"text":"Questetra Developers Blog","link":"https:\/\/support.questetra.com\/ja\/category\/developer-blog\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/09\/OneDrive-1.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/09\/OneDrive-1.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/09\/OneDrive-1.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/09\/OneDrive-1.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2020\/09\/OneDrive-1.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2023\/07\/upload-to-dropbox.png?fit=1200%2C675&ssl=1","_links":{"self":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/148565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/comments?post=148565"}],"version-history":[{"count":7,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/148565\/revisions"}],"predecessor-version":[{"id":148579,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/148565\/revisions\/148579"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/148568"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=148565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=148565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=148565"},{"taxonomy":"faq_section","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/faq_section?post=148565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}