File name not showing on Uploader

Hi there,

I have what seems like a very basic issue. Using the standard, native Uploader button, in every demo and video I see it automatically replacing placeholder text with the file name once a file is uploaded… but that has never worked for me. I’ve tried all kinds of actions, writing to then referencing the file from DB, and other workarounds, but nothing seems to work. Mousing over to show the file name once uploaded works fine - but I can’t get it to show inside of the uploader itself (or in a dynamic text block, either).

Happy to provide more detail if helpful.

Thanks!

To clarify, are you talking about the first time you come to the page to upload the file, or are you wanting that to be pre-filled with an older file upload on new visits to the page?

Do you have any workflow actions set on when the input changes that could be interfering and clearing it out somehow? Less likely, do you have any edits to the uploader style that might conditionally make the text harder to see if the input has changed?

What happens when you actually select a file? Does the box become empty, or does it retain the placeholder text?

I don’t have any good answers yet but maybe those questions will lead to a useful debugging path. Let us know here what you find out.

Thanks, Steve - responses/clarity:

  • This is after the file has been selected, on the same page - there’s no further dialogue from the native uploader, so I assume at this point it’s got the info it needs to show the filename.
  • I cleared out all actions that might even possibly impact this on the page
  • The box retains the placeholder text when I actually select a file (though, as I mentioned, there’s a mouseover tooltip that does correctly show the new file name)

Much appreciated.

Interesting. The only way I can get the file uploader to mimic the behavior you describe is if I select a file that is larger than the limit set on the element, but in that case I get a browser alert to the effect that the file is too large, so I assume you would notice if that was going on (unless there’s some way to suppress those alerts that might be at play).

I guess I should have asked this in my first post, but: aside from the UI not reflecting the selected file, does the page function as intended? Can you verify that the files are actually being uploaded?

Yep… the max file size is set to 50mb and I seldom test with anything over 1mb (these are PDF’s).

Otherwise, the page functions perfectly. I’m passing the uploaded files to a custom JS function that then spits out an output comparing the two uploaded files in the next screen, and all of that is working pretty consistently.

Figured this out… it has to do with some custom JS we’re running that intercepts the upload.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.