Comment by ๐Ÿš€ clseibold

Re: "How to handle uploaded data?"

In: s/Spartan

@asdf For that you would have to have some configuration to allow users of your server to specify routes that they want redirected to a different route.

This same route configuration file would also be used to setup a route for an SCGI server (and if you want, CGI scripts as well).

For an example of a server that does this, you can see skyjake's GmCapsule's rewrite.* and cgi.* settings:

โ€” GmCapsule

๐Ÿš€ clseibold [๐Ÿ›‚ Code of Conduct rule 1 violations]

2025-02-19 ยท 1 year ago

1 Later Comment

๐Ÿ™ norayr ยท 2025-03-20 at 12:25:

i just saw your post, and i just asked a question in this subspace.

i want my students who already implemented spartan client that gets data, also to upload data. but i have no idea how to test this.

do you see how can i test this by using your server? lets say can it write all strings uploaded to one file, that is publicly accessible via spartan?

or how do i write such a cgi? for any spartan server? which spartan server would you recommend?

Original Post

๐ŸŒ’ s/Spartan

๐Ÿš€ asdf:

How to handle uploaded data? โ€” So I've been writing a Spartan server, and I've realised I actually have no idea what to do with data that gets uploaded to it. I myself don't need a Spartan server that data can be uploaded to, but if someone else wants to use it and they need to allow data to be uploaded so people can log in, make comments, or something else, how would the server handle that? I guess maybe send it to some other software, but how would that work? How would someone tell it to send...

๐Ÿ’ฌ 4 comments ยท 2025-02-18 ยท 1 year ago