Support » Plugin: File Away » Uploaded files don’t appear until refresh of page

  • Resolved jeynon

    (@jeynon)


    Intranet questions again ๐Ÿ™‚
    It uploads great and when they all go up the page just sits and the new files don’t show. The user has to either refresh or leave the page and come back. My guess is this is not the default. Like the question before.. am I missing something?
    Love the plugin!
    Jon

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author thomstark

    (@thomstark)

    You are not missing something. This is not going to change in this edition of File Away. Because the details of how your file list is styled exists only in your shortcode, the server doesn’t know how the uploaded file is supposed to look, because it doesn’t know your shortcode parameters. So a page reload is necessary.

    I am (slowly) working on a pro version of File Away where the settings for a given shortcode are handled differently, allowing live updates after upload (among other things). But that will never be the case with this edition of File Away.

    Plugin Author thomstark

    (@thomstark)

    We do have the [fileaframe] solution currently which puts your fileaway shortcode in an iframe, allowing you to reload your table in the iframe without reloading the actual page the user is on. That’s the half-solution a lot of users use.

    Plugin Author thomstark

    (@thomstark)

    See the tutorials.

    Thanks for the feedback. Anywhere in your code I can throw a simple whole page refresh on when the last document uploads? Any small piece of JavaScript I could throw in the footer that can trigger the refresh? Any ajax that can help?

    Plugin Author thomstark

    (@thomstark)

    Yeah, open up wp-content/plugins/file-away/lib/js/management.js

    Go to lines 1574-76:

    
    $('span#ssfa_submit_upload_'+uid).parents('span.ssfa_fileup_wrapper').eq(0)
    	.css({'visibility':'visible','opacity':'1'});
    TheFiles[uid] = [];
    

    Add the following line below those lines:

    
    window.location.reload();
    

    Great solution for the short term. I realize I will lose it on updates but can always reapply.

    Plugin Author thomstark

    (@thomstark)

    How about in the next update I add a shortcode parameter, i.e., [fileup oncomplete="reload"] or [fileup oncomplete="your message here"] where reload will reload the page and anything else will trigger a popup message.

    Plugin Author thomstark

    (@thomstark)

    Be aware that if you have more than one fileup shortcode on one page, you wouldn’t want to do the reload option because they might be uploading in more than one upload form at the same time.

    airmvp23g

    (@airmvp23g)

    Did you ever update this? I am trying to do the same thing. Clients are uploading files, but are having trouble because they cant see if it worked without manually reloading screen.
    I tried the temporary fix talked about here, but that didnt work for me in ie or chrome.
    Thanks.

    Plugin Author thomstark

    (@thomstark)

    No I have not done an update yet. If you followed the steps to change the JavaScript above, and its not working, itโ€™s likely a caching issue.

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.