Search Unity

How to Upload the files to Server From unity

Discussion in 'Scripting' started by Alexander21, Jan 7, 2021.

  1. Alexander21

    Alexander21

    Joined:
    Dec 14, 2015
    Posts:
    302
    Hi All


    In my project i have to upload images to the server. Now i am beginning. Which one is the
    best way and easiest way for uploading the images from unity.

    . Aws or Google Drive or something better.

    I have to upload the images . when i given the path . I should view it in Web Browser.

    Is there any asset package availabe. Can any one share the few source to upload the files in the server.


    How can i do it..
     
  2. csofranz

    csofranz

    Joined:
    Apr 29, 2017
    Posts:
    1,556
    There is no 'the server'. You need to know the server protocol you want/need to interface with, and then code accordingly.

    If your server supports ftp/http (e.g. Apache, Tomcat, Nginx) you can use Unity's web service.

    Once you have found out what server protocols to support, you can then write your client code. If it doesn't work, I'm sure we'd be happy to help you debug. But you'd have to write the client first.
     
    Joe-Censored and Bunny83 like this.
  3. Alexander21

    Alexander21

    Joined:
    Dec 14, 2015
    Posts:
    302
    Thanks csofranz for ur reply,

    I have aws account. where the server supports ftp/http. I have found less code in uploading image to the aws. (unity source code)

    any one provide some source for uploading images from unity....

    thanks in advance..
     
  4. nilsdr

    nilsdr

    Joined:
    Oct 24, 2017
    Posts:
    374