Search
Search
Search
Search
Information
Information
Light
Dark
Open actions menu
Basic upload method
Bypass upload method
Tips!
If you encounter an error (by firewall) while uploading using both methods,
try changing extension of the file before uploading it and rename it right after.
This uploader supports multiple file upload.
Submit
~
var
www
intranet.bitkit.dk
httpdocs
src
utils
File Content:
urlStateUtils.ts
export const updateURLParams = (params: Record<string, string | string[]>) => { const url = new URL(window.location.href); Object.entries(params).forEach(([key, value]) => { if (Array.isArray(value)) { if (value.length > 0) { url.searchParams.set(key, JSON.stringify(value)); } else { url.searchParams.delete(key); } } else if (value) { url.searchParams.set(key, value); } else { url.searchParams.delete(key); } }); window.history.replaceState({}, '', url.toString()); }; export const getURLParam = (key: string): string | null => { if (typeof window === 'undefined') return null; const params = new URLSearchParams(window.location.search); return params.get(key); }; export const getURLArrayParam = (key: string): string[] => { const param = getURLParam(key); if (!param || typeof param !== 'string') return []; try { const parsed = JSON.parse(param); return Array.isArray(parsed) ? parsed : []; } catch { // If JSON parsing fails, try to split by comma as fallback try { return param.split(',').filter(item => item.trim().length > 0); } catch { return []; } } };
Edit
Download
Unzip
Chmod
Delete