Back

[SOLVED] guys how can i get back url from flutter.

  • 0
  • Flutter
  • Storage
Rovar2000
13 Dec, 2023, 10:15

i used getFileView but the return type of it is always unit8list, in web it will have the url inside the href but in flutter there is no way to find it.

TL;DR
User is asking for a solution to retrieve the URL from Flutter. Other users suggest building the URL using the file ID and project ID. However, another user points out that the function `getFileView()` only returns a unit8list and does not provide a URL. It seems there is no direct way to retrieve the URL in Flutter.
ideclon
13 Dec, 2023, 17:01

Doesn’t getFileView() return the file itself? Not a link to the file.

ideclon
13 Dec, 2023, 17:02

In Web it does return a URL, but not in Flutter, I think

Rovar2000
13 Dec, 2023, 18:36

yeah that is the problem like, why does not retrieve the same data as web ?

D5
13 Dec, 2023, 18:51

If you want the url, you could just build it by adding the file ID to it and the project ID

Rovar2000
13 Dec, 2023, 18:55

ohh yeah i just realized that thank you so much.

ideclon
13 Dec, 2023, 18:59

If your issue has been solved, you can mark this post as closed by adding “[SOLVED]” to the beginning of the title

Rovar2000
13 Dec, 2023, 19:00

[SOLVED] guys how can i get back url from flutter.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more