-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Meteor + Apollo] get blob url instead file #8
Comments
Hmm ... I'm not sure that I understand what your problem is ... Is file uploaded successfully? Can you view |
function the problem is I upload a file with attributes file {
lastModified: 1478153157000
lastModifiedDate: Thu Nov 03 2016 13:05:57 GMT+0700 (ICT)
name: "14590413_698257190343797_6999820439999271573_n.jpg"
preview: "blob:http://localhost:3000/fca57484-807b-4e3d-9905-ea036689f3f6"
size: 78435
type: "image/jpeg"
webkitRelativePath: ""
} but only got
what do you think ? |
@nguyenhose I also see the same thing when I use a react component like react-dropzone. How are you selecting the file? edited |
@jcampb yes, I am using react-dropzone, too !!! Maybe it's the problem. |
So if I understand correctly, you don't receive any file data on the server? I'm not sure what @nguyenhose is this
This is how my
|
@HriBB any update on this? I know I said I'd help a while back but I've been super busy at work. Are we still only supporting FileList objects? It would be nice if we provided some sort of casting function and presented blobs rather than FileLists |
@thebigredgeek sorry, I am on vacation in Turkey ATM. I come back on March 5th, and we can fix/support this. |
@thebigredgeek I have fairly recently published an alternative you might find easier to setup (no Multer setup needed) and a little more flexible: apollo-upload-server. It does not provide files to the resolver as blobs from memory (I did look into that at first), but it does allow you to intuitively work with either a single I will be actively improving apollo-upload-server and apollo-upload-client for as long as Apollo does not support uploads natively, as I am using both in two fairly large projects. |
hi, I'm try to use this package to upload a file following instruction, but I got a blob url instead file. Here is my code:
in
server.js
:in
resolver.js
in the result I got a blob url like
{ preview: 'blob:http://localhost:3000/8d38f565-7846' }
Please help.
The text was updated successfully, but these errors were encountered: