Jump to content

File handler for web resource.


Recommended Posts

Posted

Such as that of PHP $_FILE: http://php.net/manual/en/reserved.variables.files.php

Handle files with a variable. Like you have for "cookies", "form", and "querystring"

http://stackoverflow.com/questions/8659 ... pload-work

Good for:

- Player profile picture uploads.

- Screenshot submission.

- Mod submission.

- Script editing via. browser.

- FTP.

- Much more.

You can Private Message me and I will help you with Lua questions.

10 / 10 Lua scripter.

8 / 10 MTA scripter.

10 / 10 C++ embedded Lua.

Posted

It's indeed worth thinking about it.

But some comments to your "good for" list:

- Player profile picture uploads.

- Screenshot submission.

- Mod submission.

It's normally better to separate web services and the MTA server. The integrated web server shouldn't be used as a webserver to host a fully-featured webpanel, but to provide an interface for internal communication between external webpanel and MTA server.

You can also store these files in a database (or even on the file system) and download/access them via fetchRemote instead.

- Script editing via. browser.

You can already do this via HTML5 file system APIs.

- FTP

Proper FTP will not work. Implementing such a feature would indeed help to create a generic file uploader. I'm not sure if this is necessary though.

Posted

Alright at least you feel it's worth thinking about :) Thank you!

I like this mod it's amazing.

You can Private Message me and I will help you with Lua questions.

10 / 10 Lua scripter.

8 / 10 MTA scripter.

10 / 10 C++ embedded Lua.

  • 2 weeks later...
Posted

Can also make a system like Amazon's.

Where you can upload your own mp3 files to the server and play them via. music player.

You can Private Message me and I will help you with Lua questions.

10 / 10 Lua scripter.

8 / 10 MTA scripter.

10 / 10 C++ embedded Lua.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...