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
const file = {uri: 'file://my/file/path', name: 'custom_name.aac', type: 'audio/aac'}
const body = new FormData()
body.append('session', this.state.session)
body.append('id', this.state.id)
body.append('file', file)
fetch(global.BACKEND_URL+'media/upload.php', {
method: 'POST',
body
})
and whatever the actual filename was, in the webservice I received in $_FILES['file']['name'] my custom name.
Is that possible?
Thank you so much, amazing component anyway
The text was updated successfully, but these errors were encountered:
Using
fetch()
I could upload a file like this:and whatever the actual filename was, in the webservice I received in
$_FILES['file']['name']
my custom name.Is that possible?
Thank you so much, amazing component anyway
The text was updated successfully, but these errors were encountered: