rhushikeshc / clients-oriented-ftp

Automatically exported from code.google.com/p/clients-oriented-ftp
0 stars 0 forks source link

Automatically "continue" for step two of client upload #318

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Client uploads file
2.  After upload completes, client is sent to second page, and asked to 
"continue" to finish and send notifications.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Latest version, Linux.

Please provide any additional information below.

I am wondering if there is a way to automatically hit "Continue" on that second 
page.  I ask because a majority of my clients tend to start the upload, then 
walk away from their computer as it loads.  I rarely have a need for them to 
edit the name or add a description, so if it's possible for them to not need to 
hit continue, that would be great!

Thanks!

Original issue reported on code.google.com by mikerobe...@gmail.com on 5 Jun 2013 at 4:53

GoogleCodeExporter commented 8 years ago
Hi!
You can do this by changing the file upload-process-form.php

Take a look at line 605
//$('#upload_continue').click();

If you remove the // then jQuery will simulate a click to that button. This 
means that the page needs to load for a second before this works, since this 
page is a required step.

Another thing you could do is change that line so that it only works when the 
uploader is a client.

Replace it with

<?php
if ($current_level == 0) {
?>
$('#upload_continue').click();
<?php
}
?>

That should do the trick for you. I will try to include an option in the future 
for this.

Original comment by i...@subwaydesign.com.ar on 5 Jun 2013 at 9:28

GoogleCodeExporter commented 8 years ago
PERFECT.  Thanks!

Original comment by mikerobe...@gmail.com on 5 Jun 2013 at 9:51