I want to download an image from amazon s3 bucket which i have saved earlier in the same.
I am using jquery to download the image but instead of downloading it open the image.
this is my sample amazon s3 bucket url
https://s3-ap-southeast-1.amazonaws.com/dev-chn/pm/20150822142439-Penguins.jpg
This is my jquery code
$.fileDownload($(this).prop('href'), {
preparingMessageHtml: "We are preparing your download, please wait...",
failMessageHtml: "There was a problem downloading, please try again later."
});
am using jquery ui download plugin
could anyone help me?
Related
I Tried to download and store Gif photo useing node-telegram-bot-api I I Failed Can you help me
I used photo and documents download way And nothing successed
I uploaded some scorm files(articulate storyline files "HTML, js, etc files") on my amazon as3 account the files are in zip format when I upload the zip folder and share the link of the object I only get a download option is there any way that whenever I share my object link and someone other clicks on it he/she see the content on the browser rather than seeing download option?
There is no such way, unless you are going to implement it yourself on your website or application.
I'm trying to upload a pdf file to my browser, but I want to be able to download this file afterwards. I am having problems on the second task - downloading it.
I'm uploading as follow:
<b-form-file v-model="form.file" :state="Boolean(form.file)" placeholder="Choose a file..."></b-form-file>
How can I download form.file content after upload is done?
Edit:
I found this API, which handles file downloads nicely.
You need to save the file somewhere on your server or on a storage service (ie Amazon S3) and then redirect the user to a link where the file itself is served.
The specific implementation is based on your backend implementation and your architectural choices.
Media library is not displayed neither I can upload nor I can see the uploaded media files. So kindly help me out to this situation.
Just by uploading files into the wp-content/uploads won't show up in the Media Library , those media ID's needs to be there in the database to show up in the Media Library.
If you already have files in the uploads folder and want to add them into the database, you can use this plugin to add files from server.
But this is not the correct solution instead fix the permissions issue for that uploads folder.
This issue is shown by following issue
Does your server have the right permission for upload file into upload folder check it.
don't upload file directly to upload folder upload it by backend which will not added media information to database.
I try to develop a cordova project for cross-platforms. I have to upload photos to a server from gallery or with camera. And also i should show their thumbnails or small previews.
Gallery and camera option works in browser but in android when i try to select and image and upload. It uploads but doesn't show little image.
Thanks.
It's my html
And my javascript code
The FileTransfer object provides a way to upload files using an HTTP multi-part POST or PUT request, and to download files.To install this plugin simply run Command
cordova plugin add cordova-plugin-file-transfer
Properties
onprogress: Called with a ProgressEvent whenever a new chunk of data
is transferred. (Function)
Methods
upload: Sends a file to a server.
download: Downloads a file from server.
abort: Aborts an in-progress transfer.
Read about the FileTransfer you will get their example code of upload file and download file.