We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey,
nga.field('image', 'file').uploadInformation({ 'url': imageUrl, 'headers': {'Authorization': token}, 'apifilename': 'image' }),
In the request the name property has a wrong value :
Content-Disposition: form-data; name="file"; filename="toto.jpg"
It should be "image". The html markup of the input has the correct value:
<input type="file" ngf-multiple="multiple" accept="*" ngf-select="fileSelected($files)" id="image" name="image" ng-required="v.required" style="display:none">
I can't find the problem, ng-admin seems to correctly pass the filename to ng-file-upload.
The text was updated successfully, but these errors were encountered:
ping @jeromemacias any hint?
Sorry, something went wrong.
any update ?
Until we code a solution for the Image and Upload fields, here is a workaround: #541 (comment)
From what I understand from the doc, apifilename is not for specifying the request but for how to handle the response.
filename assigned by the server and returned by your API
The html markup might be using the name you pass as 1st arg to nga.field('image', 'file'), not the one from apifilename.
nga.field('image', 'file')
No branches or pull requests
Hey,
In the request the name property has a wrong value :
It should be "image".
The html markup of the input has the correct value:
I can't find the problem, ng-admin seems to correctly pass the filename to ng-file-upload.
The text was updated successfully, but these errors were encountered: