Redirect URL, no $_POST data?

Rob Begic's Avatar

Rob Begic

28 Dec, 2011 12:42 AM

Hi there

I've got a test area where I've setup the image upload, which works fine, but I'm not getting any $_POST data to my redirect URL ?

Here is the latest one I just did. Assembly ID - 8563e9c704fba827957d9f86da11cb8c

I've used the code from your minimal integration on the second processing page (which is just test.php), and no results were displayed.. So I basically did a print_r($_POST); to see what was posting and its an empty array.

Not sure if I'm doing something wrong here, but everything seems to be working fine apart from that?

Rob

  1. Support Staff 2 Posted by Tim Koschützki on 28 Dec, 2011 07:06 AM

    Tim Koschützki's Avatar

    Is your form set to multipart/formdata? Do you have this online somewhere where i can see it?

    Sent from my iPad

  2. 3 Posted by Rob Begic on 28 Dec, 2011 07:28 AM

    Rob Begic's Avatar

    Hi there

    Thanks for the help.

    http://www.wtfnews.org/rob/index.php

    Please delete the other tickets, it was bugging out when I was submitting this so they obviously went through, just didnt confirm on my end..

  3. 4 Posted by Rob Begic on 28 Dec, 2011 08:35 AM

    Rob Begic's Avatar

    And sorry, yes form set to multipart/formdata

  4. Support Staff 5 Posted by Tim Koschützki on 28 Dec, 2011 01:01 PM

    Tim Koschützki's Avatar

    I don't see any problem with how you integrate transloadit.

    Do you have anything else that could filter your $_POST array? Are you using a php framework? If not, can you paste the php code that you use?

    I checked firebug and the transloadit assembly results are properly added to the form with a < textarea name="transloadit" > [[JSON here]] < /textarea >

  5. 6 Posted by Rob Begic on 29 Dec, 2011 12:18 AM

    Rob Begic's Avatar

    Hey Tim, heres the output in the test.php (which its where its redirected):

    
    

    As you can see, after your sample script from the site I dumped all the $_POST info and its blank.

    It has me totally stumped..

    There is a framework/CMS that operates wtfnews.org root, but it shouldn't have an impact on the /rob/ level.. To verify, I made another quick form and tested its output and it was fine.

    I've got my server guy to check the firewall, which has been disabled (just in case) and is still disabled.

    It has me totally stumped.

    Rob

  6. 7 Posted by Rob Begic on 29 Dec, 2011 12:22 AM

    Rob Begic's Avatar

    Code didnt display .. I've attached it

  7. 8 Posted by Rob Begic on 29 Dec, 2011 12:53 AM

    Rob Begic's Avatar

    Just to add some more info.. I've loaded test forms from other servers and tested the output on my wtf server to that same test.php file (where transloadit scripts are) and the $POST dump in that test.php dumps $POST variables from other sites/servers fine

  8. Support Staff 9 Posted by Tim Koschützki on 29 Dec, 2011 07:04 AM

    Tim Koschützki's Avatar

    What happens if you do print_r($_POST) before all of that code?

    Sent from my iPad

  9. 10 Posted by Rob Begic on 29 Dec, 2011 07:49 AM

    Rob Begic's Avatar

    Same thing unfortunately.

  10. 11 Posted by Felix Geisendörfer on 29 Dec, 2011 01:04 PM

    Felix Geisendörfer's Avatar

    Your webserver redirects all requests without leading www.:

    curl -i -X POST -F transloadit='{}' http://wtfnews.org/rob/test.php
    HTTP/1.1 301 Moved Permanently
    Date: Thu, 29 Dec 2011 13:04:00 GMT
    Server: Apache
    Location: http://www.wtfnews.org/rob/test.php
    Cache-Control: max-age=86400
    Expires: Fri, 30 Dec 2011 13:04:00 GMT
    Vary: Accept-Encoding
    Content-Length: 243
    Connection: close
    Content-Type: text/html; charset=iso-8859-1
    
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>301 Moved Permanently</title>
    </head><body>
    <h1>Moved Permanently</h1>
    <p>The document has moved <a href="http://www.wtfnews.org/rob/test.php">here</a>.</p>
    </body></html>
    

    Fixing this is as easy as adding the www. to your redirect_url.

    --fg

  11. Felix Geisendörfer closed this discussion on 29 Dec, 2011 01:04 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

25 Aug, 2014 12:05 PM
14 Aug, 2014 07:02 AM
13 Aug, 2014 12:21 PM
29 Jul, 2014 12:48 PM
23 Jul, 2014 01:49 PM

 

22 Jul, 2014 11:09 AM
21 Jul, 2014 07:29 AM
18 Jul, 2014 12:49 PM
17 Jul, 2014 08:25 AM
17 Jul, 2014 07:22 AM
16 Jul, 2014 01:17 PM