LycheeOrg / Lychee

A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.
https://lycheeorg.github.io/
MIT License
3.35k stars 299 forks source link

Unable to upload with Firefox - "The file last modified time field is required" #1871

Closed pichouk closed 1 year ago

pichouk commented 1 year ago

Detailed description of the problem [REQUIRED]

When using Firefox 112.0.1 on Debian 12, with my Jellyfin server upgraded to 4.9.2 version, I am not able to upload any images and get the "The file last modified time field is required" error message.

I tried with multiple images and get the same error. I also ensured that my images contains exif data.

With the exact same setup but using Chromium 112.0.5615.138, the upload works perfectly.

Steps to reproduce the issue

1) Use Firefox (version 112.0.1 but I assume would be the same on others versions) and Jellyfin 4.9.2 (probably 4.8.1 and higher) 2) Upload an image to any Album, using drag and drop or "traditional" upload button. Here is a test image I used. 3) Get the "The file last modified time field is required" error message. 4) Do the same on Chromium (or other browser) and it should wokr

Output of the diagnostics [REQUIRED]


    Diagnostics
    -------
    Warning: Dropbox import not working. dropbox_key is empty.
    Warning: git (software) is not available.

    System Information
    --------------
    Lychee Version (git):                    ?? (a3423b6) -- Could not compare.
    DB Version:                              4.9.2

    composer install:                        --no-dev
    APP_ENV:                                 production
    APP_DEBUG:                               false

    System:                                  Linux
    PHP Version:                             8.2.5
    PHP User agent:                          Lychee/4 (https://lycheeorg.github.io/)
    Timezone:                                Europe/Paris
    Max uploaded file size:                  100M
    Max post size:                           100M
    Max execution time:                      3600
    PostgreSQL Version:                      PostgreSQL 14.4 on x86_64-pc-linux-musl, compiled by gcc (Alpine 11.2.1_git20220219) 11.2.1 20220219, 64-bit

    exec() Available:                        yes
    Imagick Available:                       1
    Imagick Enabled:                         1
    Imagick Version:                         1691
    GD Version:                              2.3.3
    Number of foreign key:                   11 found.

    Lychee total space:                      160.43 MB
    Upload folder space:                     8.00 B
    System total space:                      29.16 GB
    System free space:                       9.08 GB (31%)

    Config Information
    --------------
    version:                                 040902
    check_for_updates:                       0
    sorting_photos_col:                      taken_at
    sorting_photos_order:                    ASC
    sorting_albums_col:                      max_taken_at
    sorting_albums_order:                    ASC
    imagick:                                 1
    skip_duplicates:                         0
    small_max_width:                         0
    small_max_height:                        360
    medium_max_width:                        1920
    medium_max_height:                       1080
    lang:                                    fr
    layout:                                  1
    image_overlay_type:                      desc
    default_license:                         none
    compression_quality:                     90
    grants_full_photo_access:                1
    delete_imported:                         0
    mod_frame_enabled:                       1
    mod_frame_refresh:                       30
    thumb_2x:                                1
    small_2x:                                1
    medium_2x:                               1
    landing_page_enable:                     0
    site_owner:                              John Smith
    landing_title:                           John Smith
    landing_subtitle:                        Cats, Dogs & Humans Photography
    sm_facebook_url:                         https://www.facebook.com/JohnSmith
    sm_flickr_url:                           https://www.flickr.com/JohnSmith
    sm_twitter_url:                          https://www.twitter.com/JohnSmith
    sm_instagram_url:                        https://instagram.com/JohnSmith
    sm_youtube_url:                          https://www.youtube.com/JohnSmith
    landing_background:                      dist/cat.webp
    site_title:                              Lychee
    footer_show_copyright:                   1
    site_copyright_begin:                    2019
    site_copyright_end:                      2019
    footer_additional_text:                  
    footer_show_social_media:                0
    public_search:                           0
    SL_enable:                               0
    SL_for_admin:                            0
    recent_age:                              1
    grants_download:                         0
    photos_wraparound:                       1
    map_display:                             1
    zip64:                                   1
    map_display_public:                      1
    map_provider:                            Wikimedia
    force_32bit_ids:                         0
    map_include_subalbums:                   1
    update_check_every_days:                 3
    has_exiftool:                            1
    share_button_visible:                    0
    import_via_symlink:                      0
    has_ffmpeg:                              1
    location_decoding:                       0
    location_decoding_timeout:               30
    location_show:                           1
    location_show_public:                    0
    rss_enable:                              0
    rss_recent_days:                         7
    rss_max_items:                           100
    prefer_available_xmp_metadata:           0
    editor_enabled:                          1
    lossless_optimization:                   0
    swipe_tolerance_x:                       150
    swipe_tolerance_y:                       250
    local_takestamp_video_formats:           .avi|.mov
    log_max_num_line:                        1000
    unlock_password_photos_with_url_param:   0
    nsfw_visible:                            1
    nsfw_blur:                               0
    nsfw_warning:                            0
    nsfw_warning_admin:                      0
    nsfw_banner_override:                    
    map_display_direction:                   1
    album_subtitle_type:                     oldstyle
    upload_processing_limit:                 4
    public_photos_hidden:                    1
    new_photos_notification:                 0
    legacy_id_redirection:                   1
    zip_deflate_level:                       6
    SA_enabled:                              1
    default_album_protection:                1
    allow_username_change:                   1
    album_decoration:                        layers
    album_decoration_orientation:            row
    auto_fix_orientation:                    1
    use_job_queues:                          0
    random_album_id:                         starred
    use_last_modified_date_when_no_exif_date: 0

Browser and system

Client : Debian 12 and Firefox 112.0.1 Server: Debian 11.6 and Jellyfin 4.9.2 in Docker

I really don't know how all of this works. If you need more debugging information like the HTTP request/response or Dev console messages, please let me know.

ildyria commented 1 year ago

I am not able to reproduce, running Lychee locally on Debian 12 with Firefox ESR 102.11.0esr.

It may be stupid but can you do a hard refresh of your js files ? like CTRL + F5 ?

pichouk commented 1 year ago

After some investigation, it seems that disabling the Decentraleyes for my instance is solving the issue. I don't know why it did not happen before, but nevermind it was only my fault. Sorry for the noise....