How do I delete a user selected file from their device?

0 favourites
  • 6 posts
From the Asset Store
A futuristic device, can be used as radarscreen, optionscreen, infodisplay, research device, ...
  • For instance, the user uses the File Chooser object to select a file on their device.

    What object/action could be used to then delete that file from their device?

    The idea being, a user downloads a custom file from their organization, then once the user has loaded the file into the app, the source file is deleted from their device (or the device is prompted to then confirm deletion of file) for security purposes.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I don't think deleting files is allowed in HTML5 export. You can do this in NWJS or possibly Webview2 exported project.

    The idea being, a user downloads a custom file from their organization, then once the user has loaded the file into the app, the source file is deleted from their device

    Can you request the file from the organization website directly in the app, without asking the user to download it first?

  • Was thinking specifically with an android and ios export. Requesting the file from the organization within the app would introduce an additional level of complexity and security I was hoping to avoid.

  • Are you sure FileChooser works in mobile export? I've never tried it.

    To delete a file from a mobile app you will probably need to use some Cordova plugin (like "cordova-plugin-file") and call its method from a script.

  • What about the NW.js plugin and the Delete file option? Not sure how the picker tags work though...

    edit: NW.js actions only work in NW.js exports...

  • With NWjs you can delete files, but it won't work on mobile.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)