• Categories
  • Recent
  • Popular
  • Users
  • Search
  • FingerprintSwitcher
  • CustomServers
  • AutomationPlugins
Skins
  • Light
  • Default
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Quartz
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Slate
  • Solar
  • Superhero
  • Vapor
Collapse

Bablosoft

Getting the name of the uploaded file

Scheduled Pinned Locked Moved Support
6 Posts 2 Posters 952 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lacers123
    wrote on last edited by
    #1

    Hello. I will upload the photos in a folder one by one. But I want to use filenames to add titles. How can I get the name of the file I will upload?

    1 Reply Last reply
    0
  • GaGG Offline
    GaGG Offline
    GaG
    wrote on last edited by
    #2

    2024-04-16_204756.png

    L 1 Reply Last reply
    0
  • L Offline
    L Offline
    lacers123
    replied to GaG on last edited by
    #3

    @GaG No, this is not what I'm looking for. It uploads the files in the folder in order of name. I use "|notreuse". I want to transfer the name of the current file to a variable and use it.

    1 Reply Last reply
    0
  • GaGG Offline
    GaGG Offline
    GaG
    wrote on last edited by GaG
    #4

    Than just take full file path from same variable without "|notreuse",
    and extract just filename using string module or javascript.

    Guess youre doing it in a loop, so same variable that you used
    with "|notreuse" will give its content without "|notreuse" in same
    loop cycle.

    1 Reply Last reply
    0
  • L Offline
    L Offline
    lacers123
    wrote on last edited by
    #5

    Thank you, I will try this way. So are there different things I can use like "|notreuse"? Do you know if I can have it select files and upload them randomly instead of sequentially? For example, is there something like "|random"?

    1 Reply Last reply
    0
  • GaGG Offline
    GaGG Offline
    GaG
    wrote on last edited by
    #6

    Nope there is no "|random". "|notreuse" is option for resources in BAS.
    You can use it without "|notreuse" but its meant for use in multiple threads,
    so in that case each new browser instance will use different line from resource.
    It looks like you are doing it in one browser instance, so you have to use "|notreuse"
    because of that.

    Other option is to use "File search" and read all files that neds to be
    uploaded into list variable. Than you can use that list and extract needed
    data (title - name of file), and upload according to data in the list, even
    randomize it if needed.

    1 Reply Last reply
    0

  • M

    Hello, I'm new to BAS. Can anyone help me with how to upload videos to YouTube using the API in BAS?

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    103 Views
    No one has replied
  • H

    can't upload script

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    416 Views
    No one has replied
  • C

    Saving cookies to a resource having an empty .txt file

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    555 Views
    No one has replied
  • Y

    Does googledrive upload, also uploads database structure and data?

    Scheduled Pinned Locked Moved Support
    0 Votes
    1 Posts
    676 Views
    No one has replied
  • Y

    Advised action when I get "failed to wait for element...." ?

    Scheduled Pinned Locked Moved Support
    2 Votes
    1 Posts
    1127 Views
    No one has replied
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Popular
  • Users
  • Search
  • FingerprintSwitcher
  • CustomServers
  • AutomationPlugins
  • Login

  • Don't have an account? Register

  • Login or register to search.