laravel / nova-issues

554 stars 34 forks source link

Markdown s3 upload not working (404 error on /nova-api/campaigns/field-attachment/copy) #5571

Closed HeadStudios closed 1 year ago

HeadStudios commented 1 year ago

Description:

I am unable to upload files through s3 to Markdown field (withFiles('s3') option) - getting 404 error even though the URL itself exists: https://share.getcloudapp.com/o0uJN7O9

https://share.getcloudapp.com/2NupJPo5

Video for context: https://p147.p4.n0.cdn.getcloudapp.com/items/rRuzwWg9/9fdd6dd8-1261-454c-8c90-66a1b5099633.mp4?v=a2afebc8135a83b8c7c3bd48a97b05d6

Detailed steps to reproduce the issue on a fresh Nova installation:

Setup Campaign.php model as so: https://github.com/HeadStudios/novaissue-5456-nonova/blob/main/app/Models/Campaign.php

crynobone commented 1 year ago

404 here can be a result where Nova is unable to identify that copy field attribute exists on the Resource. This could happen when 3rd party package doesn't compile fields inside the custom panel correctly.