174 |
Upload a file (image/audio/video/text)
175 |
176 |
{types.map(type =>
177 |
178 |
179 | )}
180 |
181 |
The file will be encrypted and authenticated completely client-side using 128bit AES-GCM. Limit 5 MB.
182 |
,
183 | container
184 | );
185 | document.getElementById("removeIfUpload")!.style.display = "none";
186 | document.getElementById("uploadbutton")!.addEventListener('click', beginUpload);
187 | }
188 |
189 | document.addEventListener('DOMContentLoaded', () => {
190 | if (location.hash) {
191 | const [filename, key] = location.hash.substr(1).split("!");
192 | log("Loading...");
193 | React.render(