Adding thumbnails to content on RStudio Connect - rstudio

The RStudio connect API can be used to add new content, tags, bundles, etc. Is there a way to add thumbnails too using API?
Could not find any solution on the RStudio Connect API Reference page here

Related

Preview Word & Excel in a PDF control connector/API

I have a custom entity where I am using the file type column in dataverse and I have a workflow that stores every file that is being uploaded to Azure blob, delete it from Dataverse and fill up the URL of the file in another column.
The user should be able to preview any document type that is being stored in Azure blob based on the file path of the form. Previewing the file should be in the canvas app and not inside model-driven.
In Azure Blob, we can only preview PDF and image files, and the canvas app only supports seeing those files.
However, when it comes to Word and Excel documents, users will not be able to preview the file and the only option will be to download the file to their local desktop since there is no API for Azure Blob that supports those formats.
In SharePoint we do have API's to preview documents such as word/excel/PPT etc.. (we can't use SharePoint in our requirements)
I am trying to find a way to allow the user to preview the above-mentioned document types within the canvas app.
Is there any 3rd party API we can extend in the canvas app that converts other doc types to PDF? I thought of creating a flow that calls an API and responds to power apps to preview the file.
Some helpful content that I found are based on SharePoint/Dataverse but my scenario is totally different where I am using Azure Blob that is:
https://www.youtube.com/watch?v=vqK29FWbLxU&t=221s
https://www.youtube.com/watch?v=GFfAkk3g1y8&t=3s
https://pcf.gallery/notes-attachment-file-preview/
Any help is highly appreciated.

How to use Open Graph on non-html pages

I'm building an app where users can share download links to files. These files are served using golang's http.ServeContent, so they are sent as is, without any HTML. However, when these files are shared on social media platforms or a messaging service, I want to be able to display an image à-la Open Graph.
Is it possible to have Open Graph metadata tags show up for these non-HTML pages?
If it's not, is there any way to embed this content in an HTML5 page while still triggering a download of the file (and not the HTML page) when used with something like, e.g., curl?
Follow up question if none of these are possible, is there anything else I could use to have an image and a title show up when my link is shared?
I suggest not linking the direct file, but having an actual download page for them, so that the file is not linked directly, but its download page.
On the download page you could then implement the appropriate share buttons and initiate the download through a bit of JavaScript.
Alternatively you could inspect if a bot (like facebook, telegram, skype, etc) is visiting the files location and then display the appropriate open graph or twitter headers.
Example of a user agent parser: https://github.com/mssola/user_agent

windows 8.1 winjs app, share image from web url

I have a requirement where i have to share the images from the web url .I want to use this image in my app share contract. For this I am following the tutorial at this link. Only issue is that in the tutorial, file is selected using filePicker.Can you please provide any points on sharing the image from the url instead of file picker ?

Adding image to the GDrive document header

I've got web-application that works with google docs. App is uploading docs to GDrive with convertation and then i need to add image into converted document's header. How can i do this using GDrive API? I can't download full document or some converted formats, so i need to do this on google server. I am using SDK for PHP.
Google Drive API doesn't provide features to manipulate Google Docs files. What you can do is to modify the original file and upload again with conversion switched on. You can also use Google Apps Script. Please check out Document.header-section for more details.

How to let users store multiple size images in cakephp environment?

Im building a mobile app for android & ios using appcelerator. I've build a rest server using cakephp
which returns json.
I would like to know how i could make it possible that users upload a image to a server and the server
resizes this picture to 2 different standard sizes and stores them on the server. This image should be
accessible trough a json get request along side with other corresponding information. My questions are
How can i autimatically resize pictures that are uplouded by users in to two standard sizes and
how can i store these images(in folders or DB) so they are accessible through json alongside their other corresponding infomation?
for the resizing, just google "php resize image". Store the images in some folder in webroot/img folder and store the file name in the db. You might need to rename the file in case there's another file with the same name. When requested, just give the users the url to your image.

Resources