Services Plugins FAQs

File Generator Reader Downloader - Bug

I have purchased the PlugIn File Generator Reader Downloader. I am trying to use it, however, I’ve encountered a few bugs and some things are still unclear.

Here’s my full process:

  • I put the element “FileManager” somewhere on my page.
  • When uploading a file with the Bubble element “FileUploader”, I then use a button to “Read File”, which triggers the workflow action “Read file Content FileManager”. In the dynamic link, I put “FileUploader’s value”, as shown in the example provided by Zeroqode.
  • Then, I want to save that content inside a thing. Therefore I “Make changes to a thing” and store “FileManager’s content” inside the field that I want to.
    → First small complaint: It would be nice if we could access the content with “Result of step X’s content”, instead of having to look for the FileManager.

But the actual bug is here: this does not work the first time I run it: the “content”, from “FileManager File’s content”, that is stored inside my Thing, is empty. However, it does work for the all the subsequent times: the “content” from “FileManager File’s content” stored inside my Thing, is indeed the content inside my uploaded .txt file. This is true when I use either FileUploader or Bubble’s plugin MultiFileUploader.
This does NOT happen, however, if the actions are NOT running subsequently. If I have a button “Read File”, which ONLY runs the action “Read file Content FileManager”, and another button “Store File Content” which runs “Make changes to a thing” with “FileManager’s content” in a field, it does work as intended.

The other features that I’ve tested, such as downloading a .txt file, seem to work as intended.

Can someone clarify what’s going on here and possibly fix this bug?

Here are a few screenshots:



image

Spoiler alert: The testfile.txt is not actually empty.

Thanks!

Up! Does anyone know how to properly use the plugin?

Hi @nikitas,

Apologies for the late reply due to the weekend. :pray:

We will add it to our backlog improvement list for sure. Thank you for suggesting it!

The issue arises because the plugin doesn’t have adequate time to pass the FileManager File’s content after executing the Read File Content FileManager action. Your attempt to save the value occurs before this action completes, resulting in an empty value.

To resolve this, you can consider either adding a pause between these actions or utilizing the ‘File Manager Done reading a file’ event to create a new thing.

Hope this help! Please let me know if you have any further questions.

Best regards,
Gulce

2 Likes

Hi!
Thanks for the answer. I suspected that might have been the issue, however, I experimented with a pause and the same error arose, even when the pause was rather long (3 or 5 seconds). Not sure that solves it…
However, your second suggestion seems to work fine. I will be using that! Thanks a lot.

Hi @nikitas,

Glad to know it is sorted now! :slightly_smiling_face:

Please let me know if I can try to help you with anything else.

Best regards,
Gulce

1 Like