M
M
Maxim2016-06-21 11:44:40
JavaScript
Maxim, 2016-06-21 11:44:40

Is it possible to read filename from base64?

I save the file uploaded file in base64

var reader = new FileReader();
reader.readAsDataURL(item._file);

and put it in the base. Later I get this file in base64 format from the database, I can display it on the page, if it is an image, by putting the base64 string in img src, I can also let the user download this file, but how can I find out the name of the saved file? Is it possible to? Or does the file name need to be saved separately, so that later it can be displayed on the page next to the uploaded file?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-06-21
@might

you save the contents of the file, and therefore its name is no longer available to you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question