vc-platform icon indicating copy to clipboard operation
vc-platform copied to clipboard

Added mime enhancement for file type with same extension but different content type

Open ArghyadeepM opened this issue 3 years ago • 2 comments

…t header

Description This is a enhancement of validating the image/pdf files listed as part of white list categorise to actually validate the content-type associated with it.

Sometimes, a invalid file can be uploaded even though the extension passes the white list extensions.

References

QA-test:

Jira-link:

Artifact URL:

ArghyadeepM avatar Dec 03 '21 07:12 ArghyadeepM

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Dec 03 '21 07:12 CLAassistant

Review task https://virtocommerce.atlassian.net/browse/VP-7852 has been created

mvktsk avatar Dec 03 '21 07:12 mvktsk

To implement this functionality:

  1. Develop a custom module tailored to your specific requirements.
  2. Utilize the BlobCreatedEvent subscription mechanism. Added in https://github.com/VirtoCommerce/vc-module-assets/pull/19.
  3. Enhance the implementation by incorporating validation checks to ensure that the content type aligns with the expected content, thereby throwing exceptions as necessary to handle mismatches.

OlegoO avatar Feb 20 '24 12:02 OlegoO