Skip to content

Commit

Permalink
pass uploaded filenames with iNatJSWrap
Browse files Browse the repository at this point in the history
  • Loading branch information
pleary committed Dec 5, 2024
1 parent c8e8313 commit c531416
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/inaturalist_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,8 @@ InaturalistAPI.iNatJSWrap = async ( method, req ) => {
const file = files[0];
params[key] = {
type: "custom",
value: new Blob( [await readFile( file.path )] )
value: new Blob( [await readFile( file.path )] ),
options: file.filename
};
} ) );
if ( !options.remote_ip && req.connection && req.connection.remoteAddress ) {
Expand Down

0 comments on commit c531416

Please sign in to comment.