MMOframework
Why AI Playground Libraries Developers Agency
FR EN
Build a project live
Index

mmo-file

1 symbol · generated 30 Nov 2026

element

mmo-file

mmo-file.jhs:1

A 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.

<mmo-file value url token labels accept readonly></mmo-file>
Extends
CustomShadowElement
The image of a page is `<mmo-image>`'s; this one is any file, shown by its name.
<mmo-file accept="application/pdf" labels='"_TAGS/site/articles"' value="{attachment/src}"></mmo-file>

Index

valuethe address of the file
urlwhere mmo.edms' api is: the page's (MMO.edms.config.url) by default
tokenthe session's CSRF token: the page's by default
labelsthe labels of the file sent, and those the library shows: ids, or quoted paths and "#tags"
acceptthe types it takes (application/pdf), as an <input type="file"> says them
readonlythe file to see, not to change
value accessor
accept accessoran 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
.uploadingset while the file is sent

Attributes6

url

mmo-file.jhs

where mmo.edms' api is: the page's (MMO.edms.config.url) by default

url

token

mmo-file.jhs

the session's CSRF token: the page's by default

token

labels

mmo-file.jhs

the labels of the file sent, and those the library shows: ids, or quoted paths and "#tags"

labels

accept

mmo-file.jhs

the types it takes (application/pdf), as an <input type="file"> says them

accept

Properties4

accept

accessormmo-file.jhs:49

an attribute observed is set as a property: each has its setter

get accept() set accept(value)

Methods6

pickFromLibrary()

mmo-file.jhs:83

Choose a file already sent to mmo.edms, among those of labels, of the types of accept

pickFromLibrary()
returnsPromise<?string>the value, null if none was chosen

filesChange(input)

mmo-file.jhs:96

Send the file chosen in the file input

filesChange(input)
inputHTMLInputElement

send(file)

mmo-file.jhs:107

Send $file to mmo.edms: the value becomes its address

send(file)
fileFile
returnsPromise<string>

CSS hooks1