Pythe1337N / garmin-connect

Makes it simple to interface with Garmin Connect to get or set any data point.
MIT License
144 stars 58 forks source link

fix: activity upload #42

Closed tihawk closed 1 year ago

tihawk commented 1 year ago

Hi! I tried using your lib, but I couldn't upload an activity. First thing I noticed, is that the name of the formdata value is different: image (used to be just file) But also for some reason it kept breaking for me, until I changed the way the formData is built, following the request.js docs as seen here under custom_file.

Works for me now :D

Pythe1337N commented 1 year ago

Thanks for your submission! I'll do a merge and release after I've had the time to test it out.

i1skn commented 1 year ago

This does fix the issue for me! Thanks @tihawk!