FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
120 stars 18 forks source link

Media Upload to Local & Snack Bar stopped working since refreshing page to new FlutterFlow version. #2349

Closed Kato-Official closed 7 months ago

Kato-Official commented 7 months ago

Has your issue been reported?

Current Behavior

No longer able to upload any media on local upload widget state and snack bar no longer display. It most likely is just a coincidence however I am facing this (or noticed at least) since the new FlutterFlow versions (refresh page was pushed).

Expected Behavior

The expected behavior is to display the image which is uploaded to Local widget state as well as having the snack bar working ideally giving any type of feedback.

Steps to Reproduce

  1. Create new blank page;
  2. Add button and image in the main column (without any modification/styling);
  3. Add action to button (Upload Data -> Upload Save Media -> Upload Type: Local Upload (Widget State) -> Show Snack Bar -> Name: UploadedToLocalState)
  4. Image change Image Type from Network to Uploaded File -> Upload File selected is from Widget State: Uploaded Local File);
  5. Run (Nothing happens when you select the image).
  6. PS: I also tried to create a Page State variable and update page state updating that variable and trying to display that in the image but had the same results.

1

2

3

4

https://github.com/FlutterFlow/flutterflow-issues/assets/20778155/f1789c9b-e916-490f-b896-c1620a996448

Reproducible from Blank

Bug Report Code (Required)

IT4si87huIh2rtxE17qBYMdB/SMWQkAiU+coscp/bxIgGIDzPOw+ZPWkPxNCXuG6TwlceESmmnsG0NGNuOGTGMEqJTiBY65MyodcYBbxfEm5a5OBDLmwf0ZtO+dhG0ic38GzrhNTNth2W0IF12CQJfOAYALaQJDTImdISq/LZO4=

Context

I'm trying to display an image from uploaded media (instead of asset or network).

Visual documentation

1

2

3

4

https://github.com/FlutterFlow/flutterflow-issues/assets/20778155/33c3bff3-3730-4a2a-9213-c537936ed859

Additional Info

No response

Environment

- FlutterFlow v4.1 released February 15, 2024
- Flutter version is 3.13.7
- Platform: Run mobile ios and android
- Browser name and version: Chrome
- Operating system and version affected: I'm using windows, did not try on Mac.
Kato-Official commented 7 months ago

Update:

I'm not entirely sure if this is a new feature that they are trying to roll out or what else could it be. But it seem really strange that a feature just ups and disappear.

1

hariprasadms commented 7 months ago

Hi @Kato-iOS - Thanks for submitting the issue. I have verified the steps you provided above. To use the uploaded file to a local file, below option should be used instead media source type as camera or gallery .

image

However, I've noticed a technical glitch in your configuration that allows selecting media and crashes the app on real devices. This issue needs investigation, and I'll mark it as a bug.

Kato-Official commented 7 months ago

Hi @hariprasadms and @takashiff,

Firstly, I want to thank you for reviewing my bug report. I've read your response, and in an effort to expedite resolving this issue, I've based my actions on the assumption that it's related to my project configuration and my ability to access or view different features (as suggested). However, it appears this is not the issue. To illustrate my point, I conducted a test by opening a new FlutterFlow account using a different browser, under a different email, without any cookies or connection to my original account, and I encountered the exact same issues (please see the attached pictures).

Additionally, concerning the feature I mentioned, it seems to be the same one that most premium or paid users have access to, as demonstrated in the videos posted by these YouTubers: link and link. I thought it would be helpful to share my findings.

I don't mean to come across as selfish, but the pressing question now is, how can I or any other user who creates a new account currently perform simple tasks like uploading media to local storage and Firestore, especially since this option was removed from the dashboard today?

Thank you in advance for your assistance. Cheers, Amato

1 2 2B 3

KevDev99 commented 7 months ago

There must be a bug since FlutterFlow Version 4.1, after updated yesterday uploads are not working anymore: image

Checking Logs: image

After a while its completely freezing and restarting the app....

Kato-Official commented 7 months ago

@KevDev99 I was literally just about to post the same mate :) !It refuses to connect from the get go! The thing is that it seems unlikely that they pushed the new version without any unit testing that would cover this. My best guess is either something was changed in some Meta Tags, or Some security feature was added or changed that crashes with CSP! The ideal case scenario here would be to revert to previous repo/build whilst fixing this. Let's wait to here from the team! Cheers mate!

Screenshot 2024-02-16 183210

Screenshot 2024-02-16 183339

KevDev99 commented 7 months ago

@Kato-iOS well at least i'm not alone haha :D yes, it is unbelievable that such standard components are not tested. somehow the problem has crept in very strangely... i will download the code and check directly from VSCode if i can see something further...

KevDev99 commented 7 months ago

its definitely an issue with the FlutterFlow Web Emulator. It works on all Platforms when compiling locally (Tested Web, Android, iOS)

hariprasadms commented 7 months ago

Every everyone for additional details. The issue has been already marked as bug. We will look into shortly. Thanks

Kato-Official commented 7 months ago

@KevDev99 yes mate, I also tried to deploy on Testflight when I saw the issue with the JS and Tags and works there. It kind of defeat the purpose though :) I mean if you have to code and test separately also withtout knowing what will and will not display or throw errors. I wonder in in future they will add an option to link to LambdaTest as a failsafe for when the regular run and test don't work. @hariprasadms great, all noted. Thank you in advance for the prompt resolution. Cheers guys

cartworthy commented 7 months ago

I just want to chime in that my entire app functionality is built around users uploading photos. They all stopped working today and it resulted in hours of wasting time trying to debug an issue that is caused by this faulty update. I can not move forward until this is resolved.

I'm only commenting in hopes to raise this bug in the priority list — this is likely affecting many users. Thank you!

KevDev99 commented 7 months ago

I just want to chime in that my entire app functionality is built around users uploading photos. They all stopped working today and it resulted in hours of wasting time trying to debug an issue that is caused by this faulty update. I can not move forward until this is resolved.

I'm only commenting in hopes to raise this bug in the priority list — this is likely affecting many users. Thank you!

@cartworthy they issue shouldn't be at the users directly. In my case it worked in the android and ios apps without any problems, the only issue was in the web emulator

cartworthy commented 7 months ago

just tested with the newest version and it works for me again. @hariprasadms thanks!

@KevDev99 How do you get the newest version of the web emulator? I tried hitting the play button to build a new prototype, but the uploads still are not working on my end.

cartworthy commented 7 months ago

I just realized Lotties also are not showing up at all with this update!

KevDev99 commented 7 months ago

Sorry my last information was wrong but its now clear that the issue is coming from the latest security updates which now all browser automatically install ( my private one had still an older browser version and therefore it worked until the browser got updated)

KevDev99 commented 7 months ago

I just realized Lotties also are not showing up at all with this update!

have you compiled the project locally ? To check it on android / ios ?

cartworthy commented 7 months ago

I just realized Lotties also are not showing up at all with this update!

have you compiled the project locally ? To check it on android / ios ?

@KevDev99 No, but I just deployed it to TestFlight and everything works normally there. Still no Media Uploads or Lotties showing up on the web emulator though.

Kato-Official commented 7 months ago

Hi guys, the issue appears to be fixed. I will wait for the FlutterFlow Team to confirm before closing the issue as resolved. @agreaves , could you please confirm?

agreaves commented 7 months ago

Hi @Kato-iOS, apologies for not updating! This issue was indeed fixed two days ago, glad to see it's working for you now!

Closing this issue accordingly.

Kato-Official commented 7 months ago

HI @agreaves no worries, thanks appreciated the prompt resolution. Cheers mate