Skip to content

Need option for setting returned file size when using HTTP filesystem with --http-no-head #7988

Closed

Description

@w1kedZ

What is your current rclone version (output from rclone version)?

rclone v1.63.0

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 5.15.0-117-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.20.5
  • go/linking: static
  • go/tags: none

What problem are you are trying to solve?

Using RCLONE with an HTTP filesystem with virtual files that don't really exist. The webserver will proxy the files when requested. The client consuming the service is Plex Media Server. When Plex scans the library and adds files it is very slow since it scans every file (thousands). I found access to the media via RCLONE is instant when issuing the --http-no-head parameter. The problem is that Plex sees files with 0 size and no date and ignores them. I'd like to add parameters to fake the file size and date returned with the --http-no-head so that Plex will add the files to library and grab metadata for them. I tested this with a 1 byte file with a space and its fine for plex.

How do you think rclone should be changed to solve that?

Add additional parameters to be used in conjunction with --http-no-head to allow specifying a file size and date to return for all files

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Activity

  1. w1kedZ commented on Aug 5, 2024

    @w1kedZ
    Author

    I was able to force a size and date by modifying http.go and rebuilding from source:
    https://github.com/rclone/rclone/blob/1901bae4ebcbc4cdd82f6bb1862d0479f3fa386e/backend/http/http.go#L596C1-L602C3

    I set size to 100 and date to time.Now() and that works for my purposes however I think this feature request is still a useful addition.

  2. ncw commented on Oct 18, 2026

    @ncw
    Member

    I've merged @giri256 fix for this to master now which means it will be in the latest beta in 15-30 minutes and released in v1.76

  3. added a commit that references this issue on Oct 18, 2026
    f43a214
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions