Should I upload text as text or text file?

I tried uploading a bunch of text directly and I got this → https://bafkreigzgrnlh7wxu7ra62y7kss324rirxs6nq42wi4ok2gjxwwr7b7gee.ipfs.dweb.link/

Should I upload the text as a text file (with filename) or just as the above? Actually, when does it matter when we upload a file with filename and without filename?

If your actual use case is about uploading files you may want to use actual file uploads or MFS, but if you’re just storing a blob of text that doesn’t originate as a file or ever again need to be used as a file, then probably just uploading as a blob of character data might be best. Files have the metadata (filename, mod time, create time, etc), but unless you actually need that metadata maybe storing as a file is not needed. These are only my opinions.

2 Likes