-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: File uploads in Safari don’t always do work the first time #1313
Comments
Thank you for reporting!
Both of these should work. The file picker is controlled entirely by the browser, so we don’t have any control over what happens here.
I’ve seen this happen sometimes too in Safari, but haven’t been able to trace down exactly why it happens.
That error message comes from our new OFX parser, which we ultimately decided would be too complicated to update to work properly. The next release (v23.7.1 or v23.7.2), which will hopefully roll out to PikaPods soon, removes the new parser and falls back to our older, more reliable parser. You shouldn’t get those errors anymore after that update. In the meantime, you can ignore the message as it was just intended as a way for us to get feedback about files that broke our new parser (as it turned out, there were a lot!) I’m going to retitle this issue to focus on the file upload issue since I think that’s the main thing we need to fix here. |
Thank you for your quick reply, Jed. Makes sense and I appreciate all the
work that you are doing on Actual.
Maureen
…On Sat, Jul 8, 2023 at 10:24 AM Jed Fox ***@***.***> wrote:
Thank you for reporting!
Sometimes it wants me to double click on the file, sometimes it wants me
to click once and press "upload".
Both of these should work. The file picker is controlled entirely by the
browser, so we don’t have any control over what happens here.
Sometimes neither of those work and I have to just try multiple times.
I’ve seen this happen sometimes too in Safari, but haven’t been able to
trace down exactly why it happens.
Then, whenever it finally goes through I get an error message like the one
above.
That error message comes from our new OFX parser, which we ultimately
decided would be too complicated to update to work properly. The next
release (v23.7.1 or v23.7.2), which will hopefully roll out to PikaPods
soon, removes the new parser and falls back to our older, more reliable
parser. You shouldn’t get those errors anymore after that update. In the
meantime, you can ignore the message as it was just intended as a way for
us to get feedback about files that broke our new parser (as it turned out,
there were a lot!)
I’m going to retitle this issue to focus on the file upload issue since I
think that’s the main thing we need to fix here.
—
Reply to this email directly, view it on GitHub
<#1313 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BBEODB62RUBDCWIPQ2YVQ7DXPF3STANCNFSM6AAAAAA2C4NZ3M>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
++, I'm hitting this as well. I cannot upload a .csv file to import transactions from in Safari 16.5.2. Firefox 115.0.2 on the same laptop has no issues uploading a .csv file and importing transactions. |
Give #1345 a shot! |
Poking at this, for whatever reason we don't seem to be hitting the conditional after awaiting the result of the file dialog: Screen.Recording.2023-07-15.at.11.43.03.PM.mov |
Seems like Safari does not fire the In Safari nothing is logged to the console after picking a file. In Firefox there are logs. |
I ran I'm guessing WebKit doesn't like the fact that the file input is invisible, or something about it. EDIT: actually, it seems I'm just hitting the behavior mentioned in the original issue. Sometimes it works, sometimes it doesn't. |
Ah hah, inserting the file input into the DOM seems to completely fix the problem in Safari. A simple I guess WebKit doesn't like file inputs that aren't part of the DOM. |
Verified issue does not already exist?
What happened?
A bug happened!
Every time I try to import transactions there are issues. Sometimes it wants me to double click on the file, sometimes it wants me to click once and press "upload". Sometimes neither of those work and I have to just try multiple times. Then, whenever it finally goes through I get an error message like the one above.
I am hosting on pikapod
What error did you receive?
"possible error importing file"
Where are you hosting Actual?
Other
What browsers are you seeing the problem on?
Safari
Operating System
Mac OSX
The text was updated successfully, but these errors were encountered: