Closed thhck closed 4 months ago
Hi, there are a couple of options for that:
<input type="file">
element for that. So if you define a SHACL property with that datatype in the shapes graph, you will get the base64 encoded data URL in the data graph. I have tested that successfully with files up to ~500 kB, larger files will lead to an error during validation due to too much recursion (within the library that I use for that).<input type="file">
element at the position you desire.Plugin has been merged
Hi ,
It would be a great to be able to upload a file.
However I'm not sure how to implement it.
In javascript, <input type="file"..> return directly a File object. This won't be possible with shacl-form, but maybe the form can return some primitive that allow to create the javascript file object afterward ?