From 904f76dc4923502456299ce2c5abc99b026665ce Mon Sep 17 00:00:00 2001 From: Juuso Lapinlampi Date: Sun, 1 Nov 2015 03:39:07 +0000 Subject: Revert in upload_form_nojs.swig Hidden values did not work as I expected for POST requests. In GET requests, the hidden values are added as query parameters to the URL. For POST requests, the hidden inputs are simply more form-data to upload in the POST request (another "file"). Because of this, the HTML output parameter is never passed to upload.php and so it returns the default response instead (JSON). The goal is to use the HTML response. This reverts commit d6dc103c7229cb0e2e177ce0dfc0cfb528025ca9, where the bug was introduced. OK ewhal@ --- pages/upload_form_nojs.swig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pages/upload_form_nojs.swig') diff --git a/pages/upload_form_nojs.swig b/pages/upload_form_nojs.swig index a7b70ce..1952a0d 100644 --- a/pages/upload_form_nojs.swig +++ b/pages/upload_form_nojs.swig @@ -19,8 +19,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #} -
- +
-- cgit v1.2.3