sbaaaang sbaaaang - 4 months ago 16
Node.js Question

Detect file size before to save it?

Is it possible to detect the size will be the file before saving it?

I have the file content which is a string, but i would like to check before how much space will take the file.

Any advice appreciated, thank you.