Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
I have a file in the system repository that I would like users to download without having to login to the mashup.
I have a service that emails links to the files but when they are clicked they take you to the mashup login page (unless you are already logged in, in which case the file download begins).
Thanks
Have you tried this with using an appkey for authentication?
I have, but couldn't get it to work - even with the appkey in the link it redirects you to the mashup login page.
Every time you open the mashup you're asked to login (even if already logged in under a different tab). I've been able to get around that using the appkey to open the mashup without logging in on that tab but this is only effective if you're already logged in under a different tab.
If you're using 8.3, there is a new security function that seems to impact downloads. Content Type Filtering will need to be turned off in the Subsystems > Platform Subsystem configuration (and Application Key URL needs to be left ON).
Once Content Type Filtering is disabled, and API URL is enabled, you should be able to use a download URL such as the following to access your file (no mashup needed):
http://localhost:8080/Thingworx/FileRepositories/SupportTools.Repository/stacktrace?appKey=8e96f3e0-bb7b-4344-9e6e-ac5200219065&x-thingworx-session=true
More information on the Content Type Filtering is available here:
Hope you are doing good. Could you please confirm if the issue has been resolved.
If yes, please mark the answer as accept as solution for the future reference. Thank you in advance.
Regards-Mohit Goel