Files
dolibarr/htdocs/webportal
Gigarun ingénierie f837fb4fa8 Fix: Correct unit comparison bug in webportal document download (#36256)
The file size check was comparing bytes (from dol_filesize) directly with
kilobytes (from MAIN_SECURITY_MAXFILESIZE_DOWNLOADED config), causing false
positives that blocked downloads of small files.

Example: A 94 KB file (96678 bytes) was rejected because 96678 > 20480,
even though the limit was actually 20480 KB (20 MB).

Changes:
- Convert KB limit to bytes before comparison: $fileSizeMax * 1024
- Improve error message to display file size in KB for consistency
- Add detailed logging with both bytes and KB values

Fixes: Files under the configured limit are now correctly allowed to download
2025-11-14 16:05:18 +01:00
..
2024-02-12 02:02:18 +01:00

Module Web Portal

This is a module to provide a ready to use Web Portal for your customers, suppliers, partners or members of the mebership module.

Accounts (login and pass) to access this portal can be created for any thirdparty (from the tab "Web site accounts").

It is better to have a standalone web server with its own virtual host and domain name to use this module, so using the web portal does not reaveal the domain and url of your backoffice installation.

It provides an interface to read or modify its data. This is for example, the list of the data than can be read (or modified):

If the Thirdparty module is enabled:

  • Read/modify Name, phone, email, addresses of thirdparty

If the Partnership module is enabled:

  • Read properties (status, start date, end date) of its partnership.

If the Proposal module is enabled:

  • Read its orders

If the Sale Order module is enabled:

  • Read its orders

If the Invoice module is enabled:

  • Read its invoices

If the Supplier module is enabled:

  • Read its price requests
  • Read its orders
  • Read its invoices

If module Membership is enabled:

  • Read/modify Name, phone, email, addresses of thirdparty
  • Read its membership status (start and end date, amount paid)

Documentation

Module Web Portal