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
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Bug Report
Capacitor Version
Platform(s)
Platform: android
Needs: reply please
Current Behavior
after taking image my app restart not upload the image on the server
Expected Behavior
after taking image will be upload on the server
Code Reproduction
const handleFileUpload = async (file, name) => {
try {
const requestOptions = {
method: 'POST',
headers: {
'Content-type': 'images/JPEG',
'Authorization': 'Bearer ' + t,
'Accept': '/'
},
body: file
};
};
function b64toBlob(b64Data, contentType) {
contentType = contentType || '';
var sliceSize = 512;
var byteCharacters = atob(b64Data);
var byteArrays = [];
}
const handleClickImage = async () => {
const image = await Camera.getPhoto({
quality: 90,
allowEditing: false,
resultType: CameraResultType.Base64
});
const fileName = (new Date().valueOf() + '.jpeg');
const blob = b64toBlob(image.base64String, 'image/jpeg');
setShowLoading(true)
handleFileUpload(blob, fileName);
};
Other Technical Details
npm --version
output:'ALPACA-CP': '0.0.1',
npm: '8.19.2',
node: '18.12.1',
v8: '10.2.154.15-node.12',
uv: '1.43.0',
zlib: '1.2.11',
brotli: '1.0.9',
ares: '1.18.1',
modules: '108',
nghttp2: '1.47.0',
napi: '8',
llhttp: '6.0.10',
openssl: '3.0.7+quic',
cldr: '41.0',
icu: '71.1',
tz: '2022b',
unicode: '14.0',
ngtcp2: '0.8.1',
nghttp3: '0.7.0'
}
node --version
output:pod --version
output (iOS issues only):Additional Context
The text was updated successfully, but these errors were encountered: