817 Commits

Author SHA1 Message Date
Jerome Jutteau
5b1592bcf4 [TASK] Update release process
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-06 20:09:46 +02:00
Jerome Jutteau
ca3e013b99 [TASK] Update changelog
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-06 20:02:50 +02:00
Jerome Jutteau
8eaac5f4c3 [TASK] import weblate the hard way
Webblate git repository was conflicting with gitlab's origin since two release.
This induced a lot of conflicts which are now resolved in this single commit.
Weblate will be hard-based on this commit.

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-06 19:53:41 +02:00
Jerome Jutteau
8b1d336a1c [TASK] update CI to add PHP 8.1
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-06 09:35:57 +00:00
Jerome Jutteau
7a4383a700 [TASK] Update changelog
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-06 11:25:02 +02:00
Jerome Jutteau
bb5f787f47 [BUGFIX] fix admin moving buttons on focus
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-06 11:14:16 +02:00
Jerome Jutteau
6270d6bf1a [TASK] avoid copying install.php in docker image
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-05 13:53:41 +02:00
Jerome Jutteau
b0d7e17277 [TASK] Disabling file deduplication by default.
File hashing is a pretty intensive task both for CPU and disk.
This feature seems not to be a must have and can produce unwanted side effects.
Very large file can take a lot of time to be hashed at the end of transfert, producing protential timeouts and user frustration.

Users can still enable file deduplication feature by setting `file_hash` to `md5`.

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-05 13:46:16 +02:00
Jerome Jutteau
aec88112ff [TASK] re-arrange Docker overlays to speedup image creation
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-05 13:19:20 +02:00
Jerome Jutteau
9a72b7f56f [TASK] simplify Dockerfile
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-05 13:10:03 +02:00
Jerome Jutteau
b8d29136e6 [BUGFIX] retry transfering with lower size for any HTTP error code
When a timeout is too low compared to sent size, server will return a 500 error.
Jirafeau retry to send again but do not try to reduce chunk size.

This patch will make Jiarfeau split in half it's sent size each an error occurs.

ref #273

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-05 08:25:32 +02:00
Jerome Jutteau
0b8bc44d7a [BUGFIX] jirafeau_ini_to_bytes with no modifier
When setting a PHP ini value like `post_max_size`,
the value may not have a modifier (e.g. "M") and
for "0" input, the function return empty string.

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-05 00:33:43 +02:00
Jerome Jutteau
1581d41cc2 [BUGFIX] Manage PHP configuration with "unlimited" upload
Setting `post_max_size` and `upload_max_filesize` PHP options to "0" is unmanaged by Jirafeau.
It tries to send 0 bytes and Javascript have some zero division errors.

This commit will use $max_upload_chunk_size_bytes option when available.
If $max_upload_chunk_size_bytes is also set to zero, chunk size is set an arbitrary value of 10M.

Non html-5 users will not have size limitation shown.

fixes #272

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-04 23:44:41 +02:00
Jerome Jutteau
ac13b92b26 [FEATURE] Support light/dark mode
A new option `dark_style` is introduced to set which dark theme administrators want to user.
If administrator don"t want to use a dark mode, they can just set `dark_syle` and `style` option to the same value.

closes #305

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-04 09:42:55 +02:00
Jerome Jutteau
48fd211cd2 [BUGFIX] fix proposed web root during installation
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-03 17:17:32 +02:00
Jerome Jutteau
1294029019 [BUGFIX] Print nice error when install.php is missing and we need it.
Also show header when printing this type of fatal error

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-03 17:15:17 +02:00
Jerome Jutteau
e7ca000353 [BUGFIX] Fix user/group id in Dockerfile
fixes #304

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-03 16:27:15 +02:00
Jerome Jutteau
3c7edc5e72 [TASK] update docker image with PHP 8.1
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-03 16:14:43 +02:00
Jerome Jutteau
7846b6b73a [BUGFIX] fix and simplify delete confirmation form
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-03 15:38:57 +02:00
Jerome Jutteau
6eca3aa915 [BUGFIX] Limit upload chunk size to a reasonable value
Not really a bug but avoid users to fall in php configuration traps.
ref #303

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-03 15:33:55 +02:00
Jerome Jutteau
6f6cfb13fc Add more details about upload error
ref #303

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-03 10:54:01 +02:00
Jerome Jutteau
6895578805 Update CHANGELOG regarding new options
ref #303

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-02 17:00:52 +02:00
Jerome Jutteau
9493cba088 Detail more errors
A user which just have "Error" is hard to help.
This should help understanding what is happening.

ref #303

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-07-02 16:39:30 +02:00
Jerome Jutteau
8d598fa5dd [TASK] Add example of admin password generation
ref #297

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-05-17 18:34:39 +02:00
Jerome Jutteau
803190432f [FEATURE] IRC channel is now open on libera.chat
closes #294

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-05-03 11:51:15 +00:00
bendia
c2127a10a2 [BUGFIX] use i18n string_id to avoid "FIXME" errors in install.php
This fix has been backported from #101 merge request in next-release

Thanks @bendia

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2022-04-30 19:46:33 +00:00
Hunter Fuller
d00ef4f1b8 Add support for the X-Sendfile header/module to offload downloads.
With the appropriate config option enabled, Jirafeau will send the
X-Sendfile header instead of sending the file itself. As a result,
Apache/lighttpd will send the file without the intervention of Jirafeau,
and download resumes/seeking will also be enabled for this download.

If the user requested an encrypted file then this will not work, but it
should work in all other cases.
2022-04-30 19:25:40 +00:00
Jerome Jutteau
5058cbd048 Jirafeau version 4.4.0
closes #292

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
4.4.0
2022-04-30 20:54:22 +02:00
Oskar Fagerfjäll
3e84a5debe fix spelling mistakes 2022-04-07 07:32:53 +00:00
sam lt
507be5f97b fix 2 minor typos 2022-04-07 07:31:48 +00:00
Edwin Bos
c7f776c8b9 Implement expiry after a fortnight (2 weeks). 2022-04-07 07:30:17 +00:00
MrWouterNL
6d6c111b80
[BUGFIX] Disallow file preview for image/svg+xml files 2022-03-21 20:46:14 +01:00
Jerome Jutteau
03f216f58d [BUGFIX] fix file previewing
- avoid previewing text/*
- javascript side more clear

closes #264

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2021-05-18 09:58:16 +02:00
Jerome Jutteau
8665ea5fc1 [BUGFIX] setup autocomplete field for passwords
closes #265

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2021-05-18 09:01:37 +02:00
Nicky Galliano
2bc76d8bae Update functions.php.
Following the update to php 8, I got the following debug error when trying to access my instance :
"Array and string offset access syntax with curly braces is no longer supported in [...]/jirafeau/lib/functions.php on line 31"
I just changed the deprecated curly braces into brackets and I was good to go.
2021-02-15 13:15:34 +00:00
Sven Dickert
cea71d42c3 fix #178 "Delete via API does not work" 2021-01-31 17:40:26 +00:00
Jerome Jutteau
33bb6cfe31 [TASK] add more information in bug report
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2021-01-03 22:38:49 +01:00
Jerome Jutteau
4dc0536825 [TASK] add more details in docker documentation
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2021-01-03 01:40:32 +01:00
Jerome Jutteau
50ba95ede5 [FEATURE] more option docker options
closes #247

also:
- warn user about web_root configuration in docker
- no need to rewrite default options in docker
- option name is the same as Jirafeau but in CAPSLOCK

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2021-01-03 01:24:39 +01:00
Jerome Jutteau
420be1d8b3 [FEATURE] add basic docker options
- web_root
- var_root
- admin_password

ref #247

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2021-01-01 21:38:07 +01:00
Jerome Jutteau
a155e54c13 [TASK] rework docker documentation
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2021-01-01 18:37:06 +01:00
Jerome Jutteau
144887f157 [TASK] remove useless step
Now that a lot of checks are done throw CI, this step should not be needed anymore.

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2021-01-01 02:36:06 +01:00
Jerome Jutteau
9a51f6fc76 [FEATURE] provide details for bug opening
refs #235

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2021-01-01 02:31:34 +01:00
Jerome Jutteau
cd86d83c47 Jirafeau version 4.3.0
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
4.3.0
2020-12-30 11:11:41 +01:00
Jerome Jutteau
44e5ad14d3 [TASK] update changelog
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2020-12-30 11:11:26 +01:00
Jerome Jutteau
beae768cc7 [FEATURE] allow admin to not log users IP in Jirafeau
New option 'store_uploader_ip' set to true by default.

closes #248

Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2020-12-30 10:32:04 +01:00
Jerome Jutteau
b83af6c5d9 [TASK] clean docker documentation
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2020-12-13 23:05:06 +01:00
Jerome Jutteau
a050a0d511 [TASK] add line returns for admin cli
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2020-12-13 22:56:35 +01:00
Jerome Jutteau
c8487cae33 [TASK] add docker options documentation
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2020-12-13 22:34:50 +01:00
Jerome Jutteau
07ee94c202 [TASK] add release notes
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
2020-12-13 22:28:20 +01:00