You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When uploading from local storage: I was hoping to have a choices of manually naming (current implementation), automatically generating a filename for the image, or pulling the filename from the file.
Here is what I did to get the filename of the image, from local storage...
In /file-fire/file-fire-behavior.html Updated _uploadNext and changed the following from: var name = this.path; to: var name = this.path + files[i].name;
With the previous edit to the existing code, the configuration only requires the path and the name is automatically set by the existing filename:
<file-fire app-name="app" path="/images/"
From the code supplied in the demo, I was able to output the name (see [[item.name]] in addition to the download-url (see [[item.url]]):
When uploading from local storage: I was hoping to have a choices of manually naming (current implementation), automatically generating a filename for the image, or pulling the filename from the file.
Here is what I did to get the filename of the image, from local storage...
In /file-fire/file-fire-behavior.html
Updated _uploadNext and changed the following from:
var name = this.path;
to:
var name = this.path + files[i].name;
With the previous edit to the existing code, the configuration only requires the path and the name is automatically set by the existing filename:
<file-fire app-name="app" path="/images/"
From the code supplied in the demo, I was able to output the name (see [[item.name]] in addition to the download-url (see [[item.url]]):
The text was updated successfully, but these errors were encountered: