Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom file names #146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Support custom file names #146

wants to merge 1 commit into from

Conversation

sami-t
Copy link

@sami-t sami-t commented Oct 21, 2015

I was working on an application which dynamically creates blobs (using the Blob constructor) and uploads them to Rackspace. Unfortunately blobs are uploaded as "blob" when no filename is specified in formData.append(), so I made this minor change allowing users to rename their blobs before upload. One alternative is to use the File constructor instead but it is not supported by nearly as many browsers. I haven't tested it with actual files but it shouldn't change the current behaviour and may allow renaming the files if need be.

Example
var myBlob = new Blob([...]);
myBlob.name = "myImage.jpg";

Thanks for creating this excellent package!

@santiq
Copy link

santiq commented Mar 16, 2016

👍

2 similar comments
@JuanCrg90
Copy link

👍

@Alveoli
Copy link

Alveoli commented May 4, 2016

👍

@rhyslbw
Copy link

rhyslbw commented May 5, 2016

The idea of the 👍 is to reduce the noise by comments that are just putting support behind the post. Just click the OP thumb!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants