• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

Uploading doesn't work anymore without WebAssembly

Version
4.3.6
PHP version
8.3.23
Database driver
MariaDB
Database version
10.6.22
Web browser
LibreWolf, IronFox, Firefox

user_28c0a

Chevereto Member
I just noticed that I can no longer upload images to my Chevereto site with WebAssembly disabled. This affects hardened browsers that ship with WebAssembly disabled by default, as well as standard Firefox with it disabled using about:config. There's not even some form of error handling implemented that would show a popup telling the user that WebAssembly is required. Instead, it looks like the upload is taking forever and stuck at 0%. Only the Javascript Console reveals the error related to WebAssembly.

There are very good reasons why users may choose to disable WebAssembly, see here: https://github.com/stevespringett/disable-webassembly Therefore I really want my site to also work without WebAssembly. There are multiple ways how the current situation can be improved:
1. Add a setting for site owners that allows to disable the WebAssembly-related functionality so that uploads work completely without it (preferred)
2. Add a fallback so that uploads still work without the WebAssembly-related functionality if it is detected that the browser doesn't support it (might be implemented instead of 1. or additionally to it)
3. If you don't bother fixing it, please at least add a message showing the user what went wrong instead of letting them wait forever (not a real solution,really prefer 1. or 2. or both)

Reproduction steps

1. Open LibreWolf or Firefox, visit about:config
2. Set javascript.options.wasm to false
3. Restart the browser
4. Visit a Chevereto site
5. Try uploading a image

Unexpected result

"Uploading x files (0% complete)" stays forever, no progress is being made, no error message is shown to the user.

Error log message

Error hashing file: ReferenceError: WebAssembly is not defined
 
Hello,

Chevereto WASM usage is for replacing systems that became too slow for JS, in particular this is because the xxh64 algorithm used to fingerprint files, introduced in 4.3.0. When I implemented that sign the performance for JS-only solutions was abysmal.


If you find a faster JS-only library for handling larger files let us know.
 
Back
Top