We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Puzzle setup to upload file from local system

Home Forums Puzzles Puzzle setup to upload file from local system

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #85245
    visualizer
    Customer

    Hi
    I am wondering is there a possibility of setting up puzzle structure in such way that it will allow user to upload a specific file from local system? and it will write the same file on the given server in specific directory by replacing earlier files with same name?
    I know “custom image” example works in similar way, but it doesn’t write to server directory and replace the earlier image file.
    Is it possible to achieve this with puzzles?
    Secondly,
    1. can we also give an upload file size a limit to restrict the excess file from being uploaded?
    2. can we do this for .gltf & .bin file itself?

    #85251
    bigmike814
    Customer

    You will need to use a need to use a csrf token unless you want to write to the public folder, which you can do. If you want to save it to the back end you will have to develop out your back end to handle it, but it can be done. V3D is just javascript under the hood and cant handle cross origin traffic on its own.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.