comparison src/site.js @ 35:1ce75c5ab0f7

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 03 Aug 2022 14:13:12 -0600
parents c8d47981c74f
children 0c1b820fff34
comparison
equal deleted inserted replaced
34:c8d47981c74f 35:1ce75c5ab0f7
50 return; 50 return;
51 } 51 }
52 let response = JSON.parse(request.responseText); 52 let response = JSON.parse(request.responseText);
53 let filename = file.name; 53 let filename = file.name;
54 let url = 'https://ucarecdn.com/' + response.file + '/' + filename; 54 let url = 'https://ucarecdn.com/' + response.file + '/' + filename;
55 callback(url,filename); 55 callback(input,url,filename);
56 }; 56 };
57 let formData = new FormData(); 57 let formData = new FormData();
58 formData.append( 'UPLOADCARE_PUB_KEY', 'fe3d30f3088a50941d45' ); 58 formData.append( 'UPLOADCARE_PUB_KEY', 'fe3d30f3088a50941d45' );
59 formData.append( 'file', file ); 59 formData.append( 'file', file );
60 request.send(formData); 60 request.send(formData);