I am uploaded file from telegram bot. Now I needs update this file. How to change existing file on server, or overwrite (update) this file. How I doing this using Telegram Bot API?
Related
I am trying to download attachments in private chat via graph API. When I execute the below query in Microsoft Graph Explorer. I am able to get the attachment id and path.
https://graph.microsoft.com/v1.0/me/chats/{chat-id}/messages/{message-id}/
But how can I download this file?
Files are not available when requested for hostedContents. So, I believe hostedContents is not an option.
Firstly the files are hosted in chat so it will not give 404 before but after exporting to onedrive then it will delete from there thats why its returning 404.
You have to use below API's to download file from onedrive because its exported to onedrive.
GET /drives/{drive-id}/items/{item-id}/content
GET /groups/{group-id}/drive/items/{item-id}/content
GET /me/drive/root:/{item-path}:/content
GET /me/drive/items/{item-id}/content
GET /shares/{shareIdOrEncodedSharingUrl}/driveItem/content
GET /sites/{siteId}/drive/items/{item-id}/content
GET /users/{userId}/drive/items/{item-id}/content
Reference Doc: https://learn.microsoft.com/en-us/graph/api/driveitem-get-content?view=graph-rest-1.0&tabs=http
How can files be downloaded from Sharepoint via GraphApi that are pointing to safelinks.protection.outlook.com? I am using an Azure service app.
I can download non-safelinks just fine.
I haven trying to create cloud based hosting platform for which i have already created all login management and user stuff. Recently i used paperclip for uploading profile picture in AWS S3 and it was successful. But i thought of adding upload feature in user page so after when user upload the file it should be saved in AWS S3. After successful upload user should be able to see his upload file and delete the file to. Is there some kind of gem or tutorial i can follow to do that?
You can use paper_clip gem which supports S3 upload and download. Check this https://devcenter.heroku.com/articles/paperclip-s3
Am writing an iPhone App in which I want to upload a text file from the iOS App to somewhere & I thought of using dropbox for it. I will upload the file to my dropbox ID from the App (i.e. the user won't be required to authenticate with his/her dropbox credentials). Is this possible? Dropbox API (I even tried GDrive API) asks for auth ; how do I give my dropbox credentials through code & upload the file to my dropbox account?
You must need Auth,otherwise in which account the file gets uploaded??
I don't think there is any other means to accomplish this except through OAuth.
Please refer to this framework that enables your app to access files from Dropbox without having to worry about the complexities of implementing a file browser, OAuth, or managing uploads and storage.
I am developing a ios app. in that app I am using core api of dropbox. I am able to create a folder on dropbox. But I am stuck on create a file on that folder in dropbox. using core api. Is it possible to create file on dropbox using core api in ios?
Yes, the easiest way to create a file using the Dropbox Core API is with the /files_put endpoint:
https://www.dropbox.com/developers/core/api#files_put
For larger files, you should use the chunked upload calls:
https://www.dropbox.com/developers/core/api#chunked-upload
https://www.dropbox.com/developers/core/api#commit-chunked-upload