#File uploading

1 messages · Page 1 of 1 (latest)

odd chasm
#

Hey!
I need to add file uploading to my webapp, but all the uploading related things I can find in Remix are unstable? Are these fine to use in prod or does anyone know some other way? I need to save the files to the local server and then serve the images - can't use S3 or an external file host.

My exact use case is having an admin (HR member) upload images of internal tooling/whatever and then I should be able to display these images later to other unauthenticated users.

If I'm approaching this the wrong way I'm also open to suggestions. I'm mostly a Rails dev so the JS ecosystem is still a bit foreign.

nova light
#

They’re fine to use, unstable just means the api is liable to change

#
radiant ibex
summer cargo
#

Probably to avoid accidentally overwriting files with the same name. You can always move / rename the files after they are uploaded.

nova light
#

Should be easy to patch package to add filename support, you’ll need to throw a good error if the write fails which in a quick skim I think it’s assuming collisions are too unlikely to handle that currently

#

But then can make a PR and see if Michael wants to include it

radiant ibex
#

OK, thanks for replies.