I use github sample to upload image file to dropbox and It's OK,
But after upload, HOW CAN I get link of uploaded file? Such as:
https://www.dropbox.com/s/wiczs1cbhwveq5p/2017_Penguins.jpg?dl=0
It used to record again (in my database) to download this file later, with:
javascript/download/index.html
To get a shared link for a file using the Dropbox API v2 JavaScript SDK, you can use the sharingCreateSharedLinkWithSettings method.
Related
I am using https://github.com/VeliovGroup/Meteor-Files, This package provide a collection of uploaded files via Meteor-Files.
How can I insert a document about the file that is already uploaded and not via Meteor-Files? I want to use Meteor-Files to save file info only not uploading. Because I need to get a generated download link for the file. This is provided by Meteor-Files.
Anyone can help me guide how to solve this problem?
I used addFile() function provided by FilesCollection class.
I have some files in the local and know the path of those files.
I'm trying to upload the file using AJAX.
How to upload the file using AJAX without using FORM.
enter code here
NOTE: I've the FileReader object of the file.
Please share if u have any idea.
Thanks
You cannot upload a file from the local computer unless triggered by the user (the user should select the file), you can upload a file with jQuery:
https://github.com/blueimp/jQuery-File-Upload
https://github.com/hayageek/jquery-upload-file
I want to download file from external server but after renaming it. Let's say http://playtictactoe.atwebpages.com/logo.png is an image file I want to download. I have used the following HTML:
<a href="http://playtictactoe.atwebpages.com/logo.png" download="myName.png">
Download File
</a>
But this doesn't rename the file. I've read somewhere that this is because of Response Header on server. Is there any way to ignore Response Header on client side? Else guide me any other solution.
You can download the file as a buffer and resave with the file api like descriped here:
HTML5 File API downloading file from server and saving it in sandbox
Or lookup FileAPI and XMLRequest to Buffer. You download the file as binaryBuffer save it with fileAPI and rename it. This should also work in Firefox. But this is not the simple solution you are searching for. Even though it works ;-)
You can then rename the file like you want.
Cheers
I am using ng-flow in my angular.js application to upload the file from desktop to my server and its working fine and showing like the following image.
Showing upload process
Now i want to upload the file from the dropbox so i am using Dropbox chooser to select the file from dropbox and its giving me the following details.
bytes: 457
icon: "https://www.dropbox.com/static/images/icons64/page_white.png"
isDir: false
is_dir: false
link: "https://dl.dropboxusercontent.com/1/view/bu98444xdbv0iz04/Example.txt"
name: "Example.txt"
Now how can i can i generate the flow object from that information and pass it to ng-flow to see the output like the uper image?
You can construct flow object manuall specified all necessary options for it and then call upload(). You need to handle right scenario when you are trying to use other resource than local machine
Here you can see full documentation about Flow.js
I'm trying to use uploadify control in MVC3. It works fine for uploading files.
Here is my problem:
How can i get the files in .zip file ?. Let me clear the question.
Here is a zip file (say : images.zip). It contains 3 jpeg files.
Now if i upload the images.zip file using upload control on my view page i need to get all the image files in the zip file.
If i uplaod images.zip file it should show all the images like this
I dont know how to get the files and how to start.
I've searched google but didnt get any clue about this.
How to get this? If any Jquery or Javascript code is avaliable please post.
If you can use .NET 4.5, there is a new ZipFile class that will let you get properties of a zipped archive.
If you're under 4.5, you will need a 3rd party zip file library, like SharpZipLib or DotNetZip.