Closed trusktr closed 1 year ago
If I remove transport: 'http'
I get the same config.onBeforeUpload() returned false [403]
error
Thanks! I returned true
from the onBeforeUpload
on the client and that did the trick.
Does this example does it wrong?
https://github.com/Neobii/files-gridfs-autoform-example/blob/master/lib/images.js
Did the API change perhaps? Was that ok at some point?
Oh, onBeforeUpload
works in both places? I imagine the server needs to validate, because a client can easily hack around the onBeforeUpload
on the client.
Does this example does it wrong?
https://github.com/Neobii/files-gridfs-autoform-example/blob/master/lib/images.js
No, I don't see onBeforeUpload
defined in object passed into .insert()
method
Oh,
onBeforeUpload
works in both places?
@trusktr correct, check on client and server with option skip Client
Feel free to close it in case if the issue is solved on your end.
Hello @trusktr, was this one solved on your end?
Feel free to close it in case if the issue is solved on your end.
I'm having an issue:
transport
http
, saysconfig.onBeforeUpload() returned false [403]
Meteor-Files
you're experiencing this issue:Meteor
you're experiencing this issuePost Client and/or Server logs with enabled
debug
option, you can enable "debug" mode in Constructorconfig.onBeforeUpload() returned false [403]
My code for FileCollection is basically copy/paste from GridFS guide:
And here's the upload code:
Then when
upload
is called, theonUploaded
method is passed that error.