-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Media field picker failing inside a Bag #14993
Comments
If I change to All Files and try to upload an element that's already in the It will say that the file type is not allowed Am I missing something here? I tried allowing all default media types in the Media Field instead of selecting specific ones but it doesn't change anything. |
@DJ-Paxton can you please see if PR #15017 solves your problem? |
I found the problem: So the So I created a PdfOnly field, which is a media field that you guessed it, only allows PDFs And as you can see the header image only allows images And if I use the PdfOnly media picker, it will show the same files to pick (images). If I change the order in the content definition to put the PdfOnly first it will change the behavior of the media picker as well. So it has nothing to do with the Bag, but with two different Media Fields allowing different media types working in the same Content Definition. Note: I tried with the first Media Field allowing all, to see if the next ones will filter the types, but all the fields will show all the types. |
@ DJ-Paxton if you are using nuget packages, can you please update to the latest 1.8.1 "was released few mins ago" and see if that solved your issue? |
@MikeAlhayek I updated the project, it changed the behavior but now it's working in the opposite way: The first field is an |
Hi all, I'm trying to create an information page, which will have some elements and one of those should be a list of links and attachments.
This is the structure, which is pretty basic:
![image](https://private-user-images.githubusercontent.com/61999532/294371709-42df1fab-d744-40e0-a46e-835dd0eb1598.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4NzgyOTMsIm5iZiI6MTczOTg3Nzk5MywicGF0aCI6Ii82MTk5OTUzMi8yOTQzNzE3MDktNDJkZjFmYWItZDc0NC00MGUwLWE0NmUtODM1ZGQwZWIxNTk4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDExMjYzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU5ZjM5Y2IzZmM1Y2U2ZTUwZDI1YTA5MjA5OGY5M2FiOGY0YjY5NmJiNjlmNzNjMmQxYjE3MGFmZjc1YzUwOGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.q50sOMq_oG1KfD9Eu23gGT3G_EwFmoyz2X4xKizbYk0)
Both the
list
and thebag
contains theAttachment Type
which contains just aMedia field
The Media field only allows a few media types, and the PDF type is one of them.
So far so good, I've uploaded some files and everything seems to work fine BUT, when I try to select a file when creating content it will only show images:
As an example, in the previous image I created a new
Information Page
, and I added a newAttachment
in theBag
, and when the media picker opens, it only show a jpg file, if I try to upload a file it will only allow me to upload gif, jpg, jpeg, png and svg files.By not changing anything, if I create instead an
Attachment
element (same type that the Bag is using), it works just as expected:As you can see, it's the same folder, but now it's showing all the documents.
As a workaround I can use a
List
instead of a Bag but it changes the behavior of the content creation.I'll appreciate any help or ideas
The text was updated successfully, but these errors were encountered: