Comments (7)
Which content type?
from vichuploaderbundle.
Is your trace pointing to a VichUploaderBundle location? If so, please provide all the relevant information
from vichuploaderbundle.
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.
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.
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.
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.
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)
- Deprecation notice in `CacheWarmer::warmUp()` with Symfony 6.4 HOT 1
- download_uri should use publicUrl when using FlysytemStorage HOT 1
- Removing a file from within the message queue handler HOT 7
- Namer is required in configuration from 2.2 to 2.3 HOT 2
- Problem during reading with flysystem HOT 4
- Invalid Schema error while installing the bundle on Symfony 7 HOT 1
- The option "required" does not exist ? HOT 3
- Installation instructions are outdated HOT 2
- Document how to get s3 URL HOT 2
- Install dose not register in bundle.php HOT 1
- Problem with delete when using multiple mappings on one entity HOT 1
- Using pure Annotation Does not Upload the actual file. @Vich\UploadableField HOT 3
- File injection on load not working reliabely with lazy ghost objects
- How to use metadata with VichUploader HOT 9
- The attribute reader should not trigger an exception for other attributes HOT 3
- Form type lazy load support HOT 3
- publicUrl method check looks for wrong exception.
- Autowire services that implement NamerInterface HOT 3
- Logging of storage operations HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vichuploaderbundle.