How do I add a file upload functionality in Slack app? - file-upload

So here is my use case. I have to create a Slack app in which the user should be able to enter some details and upload a file on the press of a button
The file will be saved on s3 bucket via a post request, however I do not know how to implement a file upload / file picker inside my slack app
Can anyone please tell me if there is any method in slack api for this?
Additional Info : I am using the Bolt framework for creating this app

Related

Is there a callback in Dropbox API when file upload (sync) starts?

I am creating a web service that mashes up Dropbox, Soundcloud and Wordpress.
I need a callback when user places a file in his Dropbox folder so that I can update the browser user interface. Since it is possible to ask for a download link locally before a file is completely synced, I naturally expect it to be possible to get a callback when file sync has started on a file-by-file basis.
However according to what I experienced /delta only shows files that have finished syncing.
Is there a way to know when file sync starts? If it is not possible via Core API, could it be possible with a small client applet (java or something)?
The Dropbox API doesn't currently expose any notion of a pending upload or file sync status. It can only return information about files that have finished uploading.
Likewise, even with a client app running on the same OS, there currently isn't an interface for communicating with the official Dropbox desktop client to get this information.

DropBox core API how to get GPS metadata for each image?

I am using Core Api from drop box to upload and download file. The upload and download take place from my device. So the image is stored locally and then uploaded. And when downloaded they store on device and I pull them from their locations.
I am able to access the metaData dropBox provides via the restClient LoadedMetaData method. However that method doesn't provide support for the GPS. In this blog Post from dropBox https://www.dropbox.com/developers/blog/86/new-additional-information-about-photo-and-video-files
it has an update to access this. But it is done using a GET HTTP request. Can I do this from inside xcode? I tried accessing the request directly and it gives an error of "NO AUTH" so I cant grab the JSON file. But we should already be authorized from signing in directly with the api.
Any help would be so appreciated.
I believe that in the Core SDK, you can just call [client loadMetadata:path withParams:#{#"include_media_info": #"true"}];
(Caveat: I haven't tested it myself. Please let me know if it works.)

Is there a way to create a Dropbox link that opens a file or a folder in the native app?

Basically, what I would like to do is to create a link from a web application that will open a Dropbox file from appropriate Dropbox native app. Google Drive for example allows you to re-format the unique URL for a file such as https://docs.google.com/blablabla which you can retrieve from their API, into googledrive://docs.google.com/blablabla and lets you open the file in Google Drive native app.
I have tried dropbox:// URLs with no success, and have not found any existing conversation on this despite running cross multiple conversations on the same subject for Google Drive or Evernote. Please let me know if it is possible to somehow generate this via API or based on the folder structure etc.
Thanks!

uploading files to Dropbox, bypassing authorization page?

I have a form with some upload file fields, and I want to store the files in a Dropbox folder. However, the API always asks you to register before uploading files.
Does anyone knows how to do it without having to go through the authorization page ??
I would like to click upload, and directly upload the file to my repository.

How to upload file from my iphone application to user own dropbox?

I had created an iphone application witch can generate a pdf file when the user use the application.
how can the user have the option to sent the pdf file to his own dropbox?
I had tryed with dropbox examples: where i can make an api and upload to my own dropbox.
But it's not what i want.
I want my application to do so: when the user generates a pdf file, so the login box of dropbox apear so he can log in and upload the file automaticaly to his own dropbox.
I have google it, but i did't get any examples including this solution.
Please help me if you can.
Have you looked at this blog post that i think describes what you are looking for.
http://www.drdobbs.com/tools/working-with-dropbox/232600482?pgno=1