Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Home.php
- <form action="../index.php" class="dropzone" id="my-awesome-dropzone">
- <h2 style="font-size:14px;">Upload your subtitle file</h2>
- </form>
- <?php if (!empty($new_name)) echo $new_name;?>
- <script>
- Dropzone.autoDiscover = false;
- $(function() {
- var myDropzone = new Dropzone("#my-awesome-dropzone");
- myDropzone.on("queuecomplete", function(file) {
- // Called when all files in the queue finish uploading.
- window.location = "../index.php";
- });
- });
- </script>
- ===============================
- index.php
- // Code to move file for specific directory works fine..
- $response = $this->view->render($response, "home.php",array(
- 'errors' => array($errors),
- 'new_name' => $new_name
- ));
- return $response;
- ===============================
- my page localhost:6666 when I upload a file it changes to localhost:6666/index.php but doesn't render to localhost:6666 again !
- This is works fine if I don't use the jQuery answer but it don't in the active page.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement