#1
|
|||
|
|||
![]()
We have a client that is demanding that we use a Dropbox link as an image path to search for images. I am attempting this rule:
var pic = CreateResource("dropbox link/"+Field("Image"), "graphic", true) return pic where "dropbox link/" is the actual private link. So far, it is not working. Not to say that I am surprised. Is this possible? My other solution would be to manually download all the images to a local folder just before composing new data. The dropbox link does go to the proper folder when placed in a web browser. Scott |
#2
|
||||
|
||||
![]()
Does the URL start with "http://" or with "https://"? What version of FusionPro, on what OS?
__________________
Dan Korn FusionPro Developer / JavaScript Guru / Forum Moderator PTI Marketing Technologies | Printable | MarcomCentral I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com. Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs. This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data. Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages. Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance. Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support. How To Ask Questions The Smart Way The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript. Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5. return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)}); ![]() |
#3
|
|||
|
|||
![]()
Dan,
The link is an "https". The template is being built in 11.0.9 on a Mac running 12.14.5, and due to the job's size, I intend on rendering it in our Producer that is running Windows Server 2016. |
#4
|
|||
|
|||
![]()
I don't think dropbox is going to support that. If you could get a url for each file you would be in a better situation. But only having a url to a folder isn't going to help.
To isolate the issue try your url with curl. curl -O https://fulldropboxlinktofile
__________________
FusionPro 9.3.36 - Acrobat 11 - macOS 10.14 |
#5
|
||||
|
||||
![]()
Thanks.
Quote:
Quote:
I ask about all that version info because support for downloading "https" URLs in particular varied a bit between different versions of FusionPro and operating systems. But AFAIK, everything should work in FP 11. So... it's hard to diagnose the problem without being able to reproduce what you're doing, with the same URL. What I do know is that this works for me, with FusionPro 11.0.9 on macOS 10.14.6: Code:
return CreateResource("https://files-marcomcentral.netdna-ssl.com/wp-content/uploads/2017/09/marcom-logo-retina.png"); I suspect that the issue is that the URL you're trying to access on DropBox is not a public link, as you allude to here: I also suspect that, when you go to access the link in your browser, that you're logged into the DropBox site, which gives you access to the resource in that context. When downloading from a URL in a FusionPro composition, however, there's no context of being logged in, so any URL has to be publicly available. Again, though, without knowing more about the specifics, i.e. what the URL is, I can only speculate.
__________________
Dan Korn FusionPro Developer / JavaScript Guru / Forum Moderator PTI Marketing Technologies | Printable | MarcomCentral I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com. Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs. This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data. Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages. Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance. Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support. How To Ask Questions The Smart Way The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript. Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5. return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)}); ![]() |
#6
|
|||
|
|||
![]()
Thanks. I did mean 10.14.5, fat fingers! Anyway Dan, your presumptions are true and I can not access the dropbox folder from within FP. What I did to work around this is to set up a folder action to sync the dropbox folder on my mac to a server folder that Producer can see.
|
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|