I created a content type for uploading CV and was working fine. But now the file field is not working for the below scenario:

Attach a file of valid format (Txt or doc or docx or pdf) -> After attaching remove this attachment -> Now try to attach a file of invalid format (Eg: jpeg, xls or png etc)

Expected result: There should display a proper error message

Actual result: No error displaying, only the loader icon is displaying as the file is loading. And sometimes it is showing AJAX error too.

Thanks

CommentFileSizeAuthor
#3 error message.jpg39.32 KBomkarms

Comments

ReshNosh created an issue. See original summary.

mustanggb’s picture

Category: Bug report » Feature request
Priority: Critical » Normal
omkarms’s picture

StatusFileSize
new39.32 KB

In the File field, you must specify the Allowed file extensions, which you want to add.
Apart from that specified extentions, when you add other, it throws an error as attached.

Resh01’s picture

Thanks for your update omkarms.
The allowed file extensions are already given in the file field. But when I add other extensions it was not throwing error message. That is the issue.
I have resolved it.
Thanks

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.