File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
templates/react-native/src/services Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ export class {{ service.name | caseUcfirst }} extends Service {
128
128
{% endif %}
129
129
{% endfor %}
130
130
131
+ let timestamp = new Date().getTime();
131
132
while (offset < size) {
132
133
let end = Math.min(offset + Service.CHUNK_SIZE - 1, size - 1);
133
134
@@ -143,7 +144,7 @@ export class {{ service.name | caseUcfirst }} extends Service {
143
144
});
144
145
var path = `data:${{' {' }}{{ parameter .name | caseCamel | escapeKeyword }}.type{{' }' }};base64,${{' {' }}chunk{{' }' }}`;
145
146
if (Device.osName === 'Android') {
146
- path = FileSystem.cacheDirectory + '/tmp_chunk' ;
147
+ path = FileSystem.cacheDirectory + '/tmp_chunk_' + timestamp ;
147
148
await FileSystem.writeAsStringAsync(path, chunk, {encoding: FileSystem.EncodingType.Base64});
148
149
}
149
150
You can’t perform that action at this time.
0 commit comments