Page MenuHomeSealhub

url.remarkup
No OneTemporary

url.remarkup

Url

This field will store only valid urls. On top of that you can restrict urlto be certain domains or protocols

Constructor params

new FieldTypes.Url({ 
    allowed_origins: ["https://www.youtube.com"], // will accept only youtube links
    allowed_protocols: ["https"] // will accept only https links
})

Example

const app = new (class extends App {
    config = {
        /*...*/
    };
    manifest = {
        /*...*/
    };
    collections = {
        ...App.BaseCollections,
        url: new (class extends Collection {
		fields = {
			url: new FieldTypes.Url(params),
		};
	})()
    };
})();

File Metadata

Mime Type
text/plain
Expires
Tue, Jul 8, 08:28 (17 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
776119
Default Alt Text
url.remarkup (660 B)

Event Timeline