Hello,
alternateLink
property in the File resource is to get a link that can be shared for opening the file. But I can't find this REST API command in your source code.
Hello,
alternateLink
property in the File resource is to get a link that can be shared for opening the file. But I can't find this REST API command in your source code.
Okay, I found that for OneDrive I have to use also the Share property but with TSkyDriveItem, not TOneDriveItem.
Hi,
Hi Bart, yes, this works! Thanks for your fast response.
I was able to investigate the issue, because the json string told me "invalid path".
oops, i forgot to mention that I use the CloudTreeViewAdapter.TreeView option, to load the folder in a Treeview, like in your demo.
Hi,
I have not been able to reproduce the issue TMSCloudCustomDropbox.GetShare().
Can you please provide exact steps to reproduce the issue so I can further investigate this?
Please also confirm if this issue can be reproduce with the CloudStorageDemo.
In your CloudStorageDemo change the code in ShowItem().
ci := TTMSFMXCloudItem(TTMSFMXCloudTreeViewItem(TreeView1.Selected).DataObject);
if (ci is TBoxNetItem) then
(ci as TBoxNetItem).LoadFileInfo;
**if (ci is TDropboxItem) then**
** FileName.Text := (ci as TDropboxItem).Share;**
FileName.AutoSize := False;
// FileName.Text := ci.FileName;
If you compile it for Windows, the result is the correct link.
If you compile it for Android the Filename.Text is empty.
It seems the bold function in the new forum didn't work correct, if you select two lines and click on bold. Then every line will be ** ** and not the start and end of the selection.
My new lines have to been bold:
if (ci is TDropboxItem) then
FileName.Text := (ci as TDropboxItem).Share;
Thank you for the clarification.
This issue has now been resolved.
The update will be available with the next TMS FMX Cloud Pack release.
Hello Bart,
sorry to bother you again. But can you explain, why from some Dropbox files I don't get the shared link, although your component uses the 'sharing/create_shared_link_with_settings' command in TTMSFMXCloudCustomDropBox.GetShare ?
Hello,
GetShare don't work on files, like a~Ä#Ö%Ü&ä(ö)üß.zip
The problem is the URLEncodePath() function, because Dropbox needs the filename in original version not in encoded version.
My solution is to delete the URLEncodePath() call in GetShare().
Now I will get the shared link also for this special filename: ϾЖҨڎۺᾏÇ~Ä#Ö%Ü&ä(ö)üß.zip
Maybe also in GetLink()?
Thank you for notifying.
This issue has now been fixed and the update will be available with the next release of TMS FMX Cloud Pack.