Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't upload assets using the user:profile_form #1272

Open
robdekort opened this issue Nov 26, 2024 · 3 comments
Open

Can't upload assets using the user:profile_form #1272

robdekort opened this issue Nov 26, 2024 · 3 comments

Comments

@robdekort
Copy link

robdekort commented Nov 26, 2024

Bug description

I have an asset field in my user blueprint, but I can't seem to upload assets currently using the user:profile_form. There's nothing in the docs that suggest this ain't possible, but it seems this might be an oversight.

How to reproduce

  1. Create a user account form
  2. Add an assets field
  3. Fail to make it work

Logs

No response

Environment

Environment
Laravel Version: 11.33.2
PHP Version: 8.2.26
Composer Version: 2.7.7
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: Europe/Amsterdam
Locale: nl

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: mysql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Locales
Installed: en, nl
LaravelLang\Actions\Plugin: 1.8.8
LaravelLang\Attributes\Plugin: 2.11.1
LaravelLang\HttpStatuses\Plugin: 3.8.5
LaravelLang\Lang\Plugin: 15.9.4
Locales Version: 2.9.2
Protected: en, nl
Publisher Version: 16.4.0

Statamic
Addons: 11
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 5.39.0 PRO

Statamic Addons
doefom/statamic-export: 0.4.0
duncanmcclean/guest-entries: 4.0.1
mitydigital/statamic-two-factor: 2.3.0
roorda-ict/statamic-entries-export: 2.1.1
ryanmitchell/statamic-translation-manager: 2.0.0
statamic/eloquent-driver: 4.18.0
stillat/relationships: 2.2.1
studio1902/statamic-peak-browser-appearance: 3.5.0
studio1902/statamic-peak-commands: 8.11.2
studio1902/statamic-peak-seo: 8.17.0
studio1902/statamic-peak-tools: 6.4.0

Statamic Eloquent Driver
Asset Containers: file
Assets: file
Blueprints: file
Collection Trees: file
Collections: file
Entries: eloquent
Forms: file
Global Sets: file
Global Variables: file
Navigation Trees: file
Navigations: file
Revisions: eloquent
Sites: file
Taxonomies: file
Terms: file
Tokens: file

Installation

Starter Kit using via CLI

Additional details

No response

@robdekort
Copy link
Author

robdekort commented Nov 26, 2024

I just read up on this: statamic/cms#6400

That separate PR never came though.

Fwiw: I'd expect the assets field in a user form to add to add files to the field, not wipe 'm, prolly. Prolly not, I guess it should replace but you'd need to implement a JS based solution on the frontend to handle the new and old files.

Anyways, I guess it should either be supported or the docs should be changed. Leaving it to you. I'll go back to the drawing board as I need some solution in some way.

duncanmcclean referenced this issue in statamic/docs Nov 28, 2024
@duncanmcclean duncanmcclean transferred this issue from statamic/cms Nov 28, 2024
@duncanmcclean
Copy link
Member

We should probably support assets here at some point, but it's not really a bug so I've moved it to the ideas repository for the time being.

I've also added a note to the docs to make it clearer.

@robdekort
Copy link
Author

Perfect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants