13
Node.js dosya uzantısı
Im express 3 ile node.js dosya yükleme işlevi oluşturma. Resmin dosya uzantısını almak istiyorum. böylece dosyayı yeniden adlandırabilir ve daha sonra dosya uzantısını ekleyebilirsiniz. app.post('/upload', function(req, res, next) { var is = fs.createReadStream(req.files.upload.path), fileExt = '', // I want to get the extension of the image here os = fs.createWriteStream('public/images/users/' …