Get filename from Web Got Text

I just wanted to know name of a file from the user inputted url.
Lets imagine my app user enters a url and try to get filename then web got text block will be uses( i am not sure ).
Then how Web Got Text block will give me filename?

2 Likes

Did you try something like this? :arrow_heading_down::arrow_down:

Capture

1 Like

The web got file downloads the file.I only want to get name.

2 Likes

The filename is part of the path where it is start, so while it downloads it, you also get the name of the file.

2 Likes

Can you show an example?
With some screenshots…

1 Like

Just look at the label that @Smaug gave as an example. The filename is right there.

1 Like

But that is not in Web got text block.

Ok I think there is an issue with what the original problem is.

Please post your blocks of what a user enters, how, and how you call the web function please.

From c.kodular.io

I dont know what you are wanting. Are you just trying to parse the URL they enter?
Are you trying to intercept the file, are you trying to check for errors?

Fill in the details please.

Without knowing what you want, first thing is to setup a check for the responseCode. If it is not 200 then you throw an error that it is either an invalid URL or there is another problem.

1 Like

I want to know the filename.
Like when you use download component there is a block for ‘save file as’.I just wanted to get original filename not a custom generated by some math or other blocks.

Provide us with the url.

/Boban

Suppose the url is this

Then the filename will be 5145f4faf5cb694627e921c78d41b4779c08c5e0.png.
How can I get it ?

1 Like

bild

/Boban

6 Likes

I will try this.

2 Likes

how to get exact filename from webviewer

1 Like

@Mohd_Younis Just use the same function.You get url from webviewer also.

1 Like

can you get exact filename in webviewer in this link
https://tubidy.io/videoapi/download.php?id=U3drdkw0OE15Y255RFMrcENncTNzQVVB

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.