Replies: 3 comments 18 replies
-
Hi @ezzle, |
Beta Was this translation helpful? Give feedback.
-
XML is not on our approved list of extensions for attachments. There are
configuration options that can change that. See:
https://v3.docs.apostrophecms.org/reference/modules/attachment.html#options
This is the immediate problem you're having. It's also true as Bob says
that your attachments need to land in a persistent volume of some sort or
they won't "stick." Not sure if Codespaces provides a persistent disk or
not.
…On Fri, Feb 10, 2023 at 2:14 PM Robert Means ***@***.***> wrote:
At first blush, I would say that codespaces shouldn't make a difference.
That message is thrown when the @apostrophecms/attachment module doesn't
find a file extension in the array of allowed types.
Are you able to upload any files?
I haven't played with codespaces that much, but I'm wondering if you need
another volume for the uploads? Based on the error it doesn't make sense.
You can check the fileGroups by creating a project level
***@***.***/attachment/index.js file. Then
console.log(self.fileGroups) from the module init(self). That will let
you know what extensions are allowed. If your disallowed file extensions
are there, the problem is elsewhere.
Cheers,
Bob
—
Reply to this email directly, view it on GitHub
<#4041 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAH27MCB3RQX3RAQX4PAATWW2HTDANCNFSM6AAAAAAUXVSLDY>
.
You are receiving this because you are subscribed to this thread.Message
ID: <apostrophecms/apostrophe/repo-discussions/4041/comments/4938720@
github.com>
--
THOMAS BOUTELL | CHIEF TECHNOLOGY OFFICER
APOSTROPHECMS | apostrophecms.com | he/him/his
|
Beta Was this translation helpful? Give feedback.
-
I think Bob is probably right, but just for clarification, have you tried a
simple .jpg file? Just making sure things Apostrophe definitely accepts are
not working.
…On Sat, Feb 11, 2023 at 6:20 AM Robert Means ***@***.***> wrote:
I think I need to play around with codespace a bit to fully understand
those errors. Can you provide the schema field/code that you are using for
the upload?
—
Reply to this email directly, view it on GitHub
<#4041 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAH27N6DNWAHQAK6NX2CZLWW5YZHANCNFSM6AAAAAAUXVSLDY>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
--
THOMAS BOUTELL | CHIEF TECHNOLOGY OFFICER
APOSTROPHECMS | apostrophecms.com | he/him/his
|
Beta Was this translation helpful? Give feedback.
-
Hi.
I get the following error when trying to upload a .xml, .png, .odt, .pdf file :
File type was not accepted. Allowed extensions: *
How to enable .xml extension for upload?
Best regards
Tshitshi
Beta Was this translation helpful? Give feedback.
All reactions