Have you updated Vue FilePond, FilePond, and all plugins?
[X] I have updated FilePond and its plugins
Describe the bug
Sometimes when I upload an image it is uploaded as the actual file, in my case its a mimetype: image/jpeg. However a few minutes later it can turn to mimetype: application/octet-stream
here is a copy and paste of dd in laravel
^ Illuminate\Http\Request {[#43]()
+attributes: Symfony\Component\HttpFoundation\ParameterBag {[#45]()
just uploading images as usual
here is my vue.js code
<file-pond
id="avatar"
name="avatar"
v-model="form.avatar"
ref="pond"
label-idle="Drop image here..."
v-bind:allow-multiple="false"
accepted-file-types="image/jpeg, image/png"
:server="{
url: '/tmp/image',
headers: {
'X-CSRF-TOKEN': $page.props.csrf
}
}"
@processfile="addFile"
@removefile="addFile"
/>
here is the imports and initialisation
import vueFilePond from "vue-filepond";
// Import image preview and file type validation plugins
import FilePondPluginFileValidateType from "filepond-plugin-file-validate-type";
import FilePondPluginImagePreview from "filepond-plugin-image-preview";
Is there an existing issue for this?
Have you updated Vue FilePond, FilePond, and all plugins?
Describe the bug
Sometimes when I upload an image it is uploaded as the actual file, in my case its a mimetype: image/jpeg. However a few minutes later it can turn to mimetype: application/octet-stream here is a copy and paste of dd in laravel ^ Illuminate\Http\Request {[#43]() +attributes: Symfony\Component\HttpFoundation\ParameterBag {[#45]()
parameters: []
} +request: Symfony\Component\HttpFoundation\InputBag {[#44]()
parameters: array:1 [
} +query: Symfony\Component\HttpFoundation\InputBag {[#51]()
parameters: []
} +server: Symfony\Component\HttpFoundation\ServerBag {[#48]()
parameters: array:42 [
} +files: Symfony\Component\HttpFoundation\FileBag {[#47]()
parameters: array:1 [
} +cookies: Symfony\Component\HttpFoundation\InputBag {[#46]()
parameters: array:4 [
} +headers: Symfony\Component\HttpFoundation\HeaderBag {[#49]()
headers: array:15 [
}
content: null
languages: null
charsets: null
encodings: null
acceptableContentTypes: null
pathInfo: "/tmp/image"
requestUri: "/tmp/image"
baseUrl: ""
basePath: null
method: "POST"
format: null
session: Illuminate\Session\Store {[#445]()
}
locale: null
defaultLocale: "en"
-preferredFormat: null -isHostValid: true -isForwardedValid: true
json: null
convertedFiles: null
userResolver: Closure($guard = null) {[#407]()
}
routeResolver: Closure() {[#416]()
} basePath: "" format: "html" }
Reproduction
just uploading images as usual here is my vue.js code <file-pond id="avatar" name="avatar" v-model="form.avatar" ref="pond" label-idle="Drop image here..." v-bind:allow-multiple="false" accepted-file-types="image/jpeg, image/png" :server="{ url: '/tmp/image', headers: { 'X-CSRF-TOKEN': $page.props.csrf } }" @processfile="addFile" @removefile="addFile" /> here is the imports and initialisation import vueFilePond from "vue-filepond";
// Import FilePond styles import "filepond/dist/filepond.min.css";
// Import FilePond plugins // Please note that you need to install these plugins separately
// Import image preview plugin styles import "filepond-plugin-image-preview/dist/filepond-plugin-image-preview.min.css";
// Import image preview and file type validation plugins import FilePondPluginFileValidateType from "filepond-plugin-file-validate-type"; import FilePondPluginImagePreview from "filepond-plugin-image-preview";
// Create component const FilePond = vueFilePond( FilePondPluginFileValidateType, FilePondPluginImagePreview, );
import { useForm } from "@inertiajs/inertia-vue3" export default { name: "Register", components: { NavigationBar, Footer, FilePond }
Environment