You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on mobile, using std html input type file with JS getting the file's binary bytes and doing a fetch.post using content-type application/octet-stream.
The only way i can get the iphone to work is to use the camera and not the html to take a photo and to then upload the iphone's photo to a laptop where i use the html that is not working on ios safari.
works from laptop
works from android 13 on phone
causes NaN error addressing lat, long after exifr.gps call
my only wild guess is to try other content-type headers on safari??
metadata is clearly in the ios photo but when safari implements js below the metadata is stripped out
html <input type="file" id="files" name="files[]" accept="image/png, image/jpeg" title="" />
javascript:
function HandleBrowseClick()
{ upload(file)}
const domain = 'awsgcpupld-production.up.railway.app'
const upload = (file) => {
let url1 = `https://${domain}/labelai/${file.name}`;
console.log(url1)
fetch(url1, {
method: 'POST',
headers: {
"application":"awsgcpupld-production.up.railway.app",
"Content-Type": "application/octet-stream",
"authorization":"Bearer "
},
body: file // this is binary file from the input tag in html
}).then(
server-side node causing error works everywhere except when client is ios/safari ios 15
let {latitude, longitude} = await exifr.gps(req.body);
--its an ios feature on <16.4 -- details
on mobile, using std html input type file with JS getting the file's binary bytes and doing a fetch.post using content-type application/octet-stream.
The only way i can get the iphone to work is to use the camera and not the html to take a photo and to then upload the iphone's photo to a laptop where i use the html that is not working on ios safari.
works from laptop
works from android 13 on phone
causes NaN error addressing lat, long after exifr.gps call
my only wild guess is to try other content-type headers on safari??
metadata is clearly in the ios photo but when safari implements js below the metadata is stripped out
html
<input type="file" id="files" name="files[]" accept="image/png, image/jpeg" title="" />
javascript:
server-side node causing error works everywhere except when client is ios/safari ios 15
let {latitude, longitude} = await exifr.gps(req.body);
middleware handler for "req.body" :
above code in express route where req.body is uploaded binary file
The text was updated successfully, but these errors were encountered: