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

How to get the lastModified value (supported by flow.js)? #112

Open
wayneconnolly opened this issue Dec 31, 2022 · 0 comments
Open

How to get the lastModified value (supported by flow.js)? #112

wayneconnolly opened this issue Dec 31, 2022 · 0 comments

Comments

@wayneconnolly
Copy link

Hi, I really love this uploader. Thank-you.

I want to obtain the lastModified value of the file to be uploaded.

It appears to be supported by flow.js attributes here https://github.com/flowjs/flow.js/#methods and https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file

The selected files' are returned by the element's HTMLInputElement.files property, which is a FileList object containing a list of file objects. The FileList behaves like an array, so you can check its length property to get the number of selected files.

Each File object contains the following information:

name
The file's name.

lastModified
A number specifying the date and time at which the file was last modified, in milliseconds since the UNIX epoch (January 1, 1970 at midnight).

size
The size of the file in bytes.

type
The file's [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types).

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

No branches or pull requests

1 participant