Skip to main content

No puedo subir archivos docx.

Comments

1 comment

  • Aleksandar Kostadinov

    Hi Henry,

    I see you had a ticket raised via Zendesk directly which was regarding this issue and I've provided an answer there, but for any other users that may experience this issue, I'll also share the response here.

    This happens for 'raw' files (i.e. not images/videos/pdf) and is because the public_id should always contain the extension for raw files which is taken from the original filename and added to the public_id. As client-server uploads on Java/PHP etc save the file with a temporary name on the server, it has a .tmp extension and that gets added to the public_id if you used that temporary file as the upload source. To avoid this, it's best to grab the original name of the file from the request and use it to save the temporary file on your server, use that for uploads and then remove it if needed.

    Best regards,

    Aleksandar

    0

Post is closed for comments.