mmo-file
1 symbol · generated 30 Nov 2026
mmo-file
mmo-file.jhs:1A file of mmo.edms to send, choose or take away (an article's pdf): its value is the file's address -- its public one, relative to the site (edms/public/12/plaquette.pdf), when it went to a public label, else its inline url.
- Extends
CustomShadowElement
Index
| value | the address of the file | |
| url | where mmo.edms' api is: the page's (MMO.edms.config.url) by default | |
| token | the session's CSRF token: the page's by default | |
| labels | the labels of the file sent, and those the library shows: ids, or quoted paths and "#tags" | |
| accept | the types it takes (application/pdf), as an <input type="file"> says them | |
| readonly | the file to see, not to change | |
| value accessor | ||
| accept accessor | an attribute observed is set as a property: each has its setter | |
| readonly accessor | ||
| file readonly accessor | ||
| init() | ||
| api() | ||
| pickFromLibrary() | Choose a file already sent to mmo.edms, among those of labels, of the types of accept | |
| filesChange(input) | Send the file chosen in the file input | |
| send(file) | Send $file to mmo.edms: the value becomes its address | |
| draw() | Show the file: its name, a link to it | |
| .uploading | set while the file is sent |
Attributes6
value
mmo-file.jhsthe address of the file
value
url
mmo-file.jhswhere mmo.edms' api is: the page's (MMO.edms.config.url) by default
url
token
mmo-file.jhsthe session's CSRF token: the page's by default
token
labels
mmo-file.jhsthe labels of the file sent, and those the library shows: ids, or quoted paths and "#tags"
labels
accept
mmo-file.jhsthe types it takes (application/pdf), as an <input type="file"> says them
accept
readonly
mmo-file.jhsthe file to see, not to change
readonly
Properties4
value
accessormmo-file.jhs:36- Type
?string
accept
accessormmo-file.jhs:49an attribute observed is set as a property: each has its setter
readonly
accessormmo-file.jhs:57file
readonlyaccessormmo-file.jhs:68- Type
?Object
Methods6
init()
mmo-file.jhs:28api()
mmo-file.jhs:75| returns | MMO.edms.Api | the api of url and token, the page's by default |
pickFromLibrary()
mmo-file.jhs:83Choose a file already sent to mmo.edms, among those of labels, of the types of accept
| returns | Promise<?string> | the value, null if none was chosen |
filesChange(input)
mmo-file.jhs:96Send the file chosen in the file input
| input | HTMLInputElement |
send(file)
mmo-file.jhs:107Send $file to mmo.edms: the value becomes its address
| file | File | |
| returns | Promise<string> |
draw()
mmo-file.jhs:125Show the file: its name, a link to it
CSS hooks1
.uploading
mmo-file.jhsset while the file is sent
.uploading