FriendsOfFlarum / upload

The file upload extension with insane intelligence for your Flarum forum.
https://discuss.flarum.org/d/4154
MIT License
175 stars 94 forks source link

Integration with fof/pages: File rendering & download should work outside of original post #331

Open JeromeGillard opened 1 year ago

JeromeGillard commented 1 year ago

Bug Report

Current Behavior Uploaded files are not rendered in fof/pages. Uploaded files cannot be downloaded fof/pages.

Steps to Reproduce

Expected Behavior The bbcode [upl-file uuid=e737f663-f38f-4d93-9d1c-5ec7abd4b19c size=2kB url=https://www.test.com/assets/files/2022-10-12/1665582177-619189-tes.gpx]test.gpx[/upl-file] should be working on pages.

Environment

Possible solution(s)

A workaround is to create a post that has the same post.id than the page route's. Then it works. But the page existence is now tied to another public post.

Additional Context

DavideIadeluca commented 2 weeks ago

@JeromeGillard Can you please try to reproduce your described issue on the latest version of fof/upload again? In the meantime there were quite some changes to this extension.