Giter VIP home page Giter VIP logo

Comments (7)

garak avatar garak commented on July 4, 2024 1

Which content type?

from vichuploaderbundle.

garak avatar garak commented on July 4, 2024

Is your trace pointing to a VichUploaderBundle location? If so, please provide all the relevant information

from vichuploaderbundle.

Mirieri avatar Mirieri commented on July 4, 2024

Yes it is

vich_uploader:
    db_driver: orm
    mappings:
        imageFile:
            uri_prefix: /images/mob_image
            upload_destination: '%kernel.project_dir%/public/images/mob_image'
            namer: Vich\UploaderBundle\Naming\SmartUniqueNamer

from vichuploaderbundle.

garak avatar garak commented on July 4, 2024

Your original comment (before the editing) was more relevant and didn't show any mention of this bundle.
What makes you think the problem is here?

from vichuploaderbundle.

Mirieri avatar Mirieri commented on July 4, 2024

here is the trace:

{"type":"https:\/\/tools.ietf.org\/html\/rfc2616#section-10","title":"An error occurred","detail":"The content-type \u0022multipart\/form-data; boundary=--------------------------975666414905954377383152\u0022 is not supported. Supported MIME types are \u0022application\/json\u0022.","trace":[{"namespace":"","short_class":"","class":"","type":"","function":"","file":"\/Users\/mirierimogaka\/Downloads\/rest_api\/adgg-zoetis-api\/vendor\/api-platform\/core\/src\/Symfony\/EventListener\/DeserializeListener.php","line":166,"args":[]},{"namespace":"ApiPlatform\\Symfony\\EventListener","short_class":"DeserializeListener","class":"ApiPlatform\\Symfony\\EventListener\\DeserializeListener","type":"-\u003E","function":"getFormat","file":"\/Users\/mirierimogaka\/Downloads\/rest_api\/adgg-zoetis-api\/vendor\/api-platform\/core\/src\/Symfony\/EventListener\/DeserializeListener.php","line":129,"args":[["object","Symfony\\Component\\HttpFoundation\\Request"],["array",{"json":["array",[["string","application\/json"]]]}]]},{"namespace":"ApiPlatform\\Symfony\\EventListener","short_class":"DeserializeListener","class":"ApiPlatform\\Symfony\\EventListener\\DeserializeListener","type":"-\u003E","function":"onKernelRequest","file":"\/Users\/mirierimogaka\/Downloads\/rest_api\/adgg-zoetis-api\/vendor\/symfony\/event-dispatcher\/Debug\/WrappedListener.php","line":117,"args":[["object","Symfony\\Component\\HttpKernel\\Event\\RequestEvent"],["string","kernel.request"],["object","Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher"]]},{"namespace":"Symfony\\Component\\EventDispatcher\\Debug","short_class":"WrappedListener","class":"Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener","type":"-\u003E","function":"__invoke","file":"\/Users\/mirierimogaka\/Downloads\/rest_api\/adgg-zoetis-api\/vendor\/symfony\/event-dispatcher\/EventDispatcher.php","line":230,"args":[["object","Symfony\\Component\\HttpKernel\\Event\\RequestEvent"],["string","kernel.request"],["object","Symfony\\Component\\HttpKernel\\Debug\\TraceableEventDispatcher"]]},{"namespace":"Symfony\\Component\\EventDispatcher","short_class":"EventDispatcher","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"-\u003E","function":"callListeners","file":"\/Users\/mirierimogaka\/Downloads\/rest_api\/adgg-zoetis-api\/vendor\/symfony\/event-dispatcher\/EventDispatcher.php","line":59,"args":[["array",[["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"],["object","Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener"]]],["string","kernel.request"],["object","Symfony\\Component\\HttpKernel\\Event\\RequestEvent"]]},{"namespace":"Symfony\\Component\\EventDispatcher","short_class":"EventDispatcher","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"-\u003E","function":"dispatch","file":"\/Users\/mirierimogaka\/Downloads\/rest_api\/adgg-zoetis-api\/vendor\/symfony\/event-dispatcher\/Debug\/TraceableEventDispatcher.php","line":151,"args":[["object","Symfony\\Component\\HttpKernel\\Event\\RequestEvent"],["string","kernel.request"]]},{"namespace":"Symfony\\Component\\EventDispatcher\\Debug","short_class":"TraceableEventDispatcher","class":"Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher","type":"-\u003E","function":"dispatch","file":"\/Users\/mirierimogaka\/Downloads\/rest_api\/adgg-zoetis-api\/vendor\/symfony\/http-kernel\/HttpKernel.php","line":133,"args":[["object","Symfony\\Component\\HttpKernel\\Event\\RequestEvent"],["string","kernel.request"]]},{"namespace":"Symfony\\Component\\HttpKernel","short_class":"HttpKernel","class":"Symfony\\Component\\HttpKernel\\HttpKernel","type":"-\u003E","function":"handleRaw","file":"\/Users\/mirierimogaka\/Downloads\/rest_api\/adgg-zoetis-api\/vendor\/symfony\/http-kernel\/HttpKernel.php","line":79,"args":[["object","Symfony\\Component\\HttpFoundation\\Request"],["integer",1]]},{"namespace":"Symfony\\Component\\HttpKernel","short_class":"HttpKernel","class":"Symfony\\Component\\HttpKernel\\HttpKernel","type":"-\u003E","function":"handle","file":"\/Users\/mirierimogaka\/Downloads\/rest_api\/adgg-zoetis-api\/vendor\/symfony\/http-kernel\/Kernel.php","line":195,"args":[["object","Symfony\\Component\\HttpFoundation\\Request"],["integer",1],["boolean",true]]},{"namespace":"Symfony\\Component\\HttpKernel","short_class":"Kernel","class":"Symfony\\Component\\HttpKernel\\Kernel","type":"-\u003E","function":"handle","file":"\/Users\/mirierimogaka\/Downloads\/rest_api\/adgg-zoetis-api\/public\/index.php","line":20,"args":[["object","Symfony\\Component\\HttpFoundation\\Request"]]}]}

from vichuploaderbundle.

Mirieri avatar Mirieri commented on July 4, 2024

Your original comment (before the editing) was more relevant and didn't show any mention of this bundle. What makes you think the problem is here?

Is it possible to set content-type format with this bundle?

from vichuploaderbundle.

l0r3nc335 avatar l0r3nc335 commented on July 4, 2024

Try to watch these videos. he has the same issues as you have and he fixed it.

https://www.youtube.com/watch?v=DE244fDABxE&t=589s
https://www.youtube.com/watch?v=E8hdiWtLKLU&t=1054s

from vichuploaderbundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.