Fix 'Server responded with 0 code' on new uploader #5

Closed
opened 5 years ago by Rail Administrator · 2 comments
Collaborator

Currently the new uploader code successfully uploads the file, however it returns "Server responded with 0 code" and does not take the user to the uploaded file nor does it return a link the user can follow at all.

This poses a problem as the file is uploaded and stored on server but there is no way to access it.

Currently the new uploader code successfully uploads the file, however it returns "Server responded with 0 code" and does not take the user to the uploaded file nor does it return a link the user can follow at all. This poses a problem as the file is uploaded and stored on server but there is no way to access it.
Rail Administrator added the bug critical labels 5 years ago
Poster
Collaborator

SYSTEM_MANUAL_IMPORT
USER:YandolsZX

Update:
Coding JSON into the new uploader code as shown below now seems to work and pass a HTTP 200 into the user client.

        $droploaddata = '{ "Location": "https://i.zxicar.us/' . $newfilename . '" }'; 
        header('Content-type: application/json');
        echo $droploaddata;
        return;

NEW PROBLEM:
The client doesn't seem to understand the returned value and redirects the user client to undefined instead. Need to find a way to overcome this.

SYSTEM_MANUAL_IMPORT USER:YandolsZX Update: Coding JSON into the new uploader code as shown below now seems to work and pass a HTTP 200 into the user client. ``` $droploaddata = '{ "Location": "https://i.zxicar.us/' . $newfilename . '" }'; header('Content-type: application/json'); echo $droploaddata; return; ``` **NEW PROBLEM:** The client doesn't seem to understand the returned value and redirects the user client to `undefined` instead. Need to find a way to overcome this.
Poster
Collaborator

SYSTEM_MANUAL_IMPORT
USER:YandolsZX

Fixed thanks to another user on : https://github.com/enyo/dropzone/issues/1688

SYSTEM_MANUAL_IMPORT USER:YandolsZX **Fixed** thanks to another user on : https://github.com/enyo/dropzone/issues/1688
Sign in to join this conversation.
Loading…
There is no content yet.