Skip to content

Uploads use absolute path to files #426

@MrCaspan

Description

@MrCaspan

So I have noticed that when you upload a file to Flarum using your tool, if you look at the code for the post it will have something like this:

[upl-image-preview uuid=ebd0eafb-8335-4f46-b3db-2723ccaf07d3 url=https://domain.com/assets/files/2024-12-31/1735616935-268987-img-20181127-155639-193-copy.jpg alt={TEXT?}]

And in the database, the fof_upload_files table if you look at the url column, it is also reverencing the full path.

Is there a reason why you would use the absolute path when storing the file locally? I understand if using a CDN or a 3rd part toool you would need to have a full URL.

I feel like this would cause issues if i ever need to change my domain name or do testing on a dev server..

Thanks all!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions