MCPcopy
hub / github.com/TTLabs/EvaporateJS / uploadKey

Function uploadKey

evaporate.js:2065–2074  ·  view source on GitHub ↗
(fileUpload)

Source from the content-addressed store, hash-verified

2063 }
2064
2065 function uploadKey(fileUpload) {
2066 // The key tries to give a signature to a file in the absence of its path.
2067 // "<filename>-<mimetype>-<modifieddate>-<filesize>"
2068 return [
2069 fileUpload.file.name,
2070 fileUpload.file.type,
2071 dateISOString(fileUpload.file.lastModified),
2072 fileUpload.sizeBytes
2073 ].join("-");
2074 }
2075
2076 function saveUpload(uploadKey, upload) {
2077 var uploads = getSavedUploads();

Callers 1

evaporate.jsFile · 0.85

Calls 1

dateISOStringFunction · 0.85

Tested by

no test coverage detected