خرید بک لینک

Vote count: 0

I'm using skipper to upload images and the images keep uploading as being owned by root, not the desired outcome. The sails app is in a sub-folder in user X's home directory, in which all files are owned by user X. I am ruing "sudo sails lift" to start the app, so maybe sudo has something to do with it.

Here's the code for the upload:

req.file('images').upload(function ( error, files ) {

    if ( error ) {
        retu res.serverError( error );
    }

    retu res.json({
        message: files.length + ' file(s) uploaded successfully!',
        files: files
    });

});

How can I make sure the files are uploaded as user X?

asked 20 secs ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 19 تير 1395 ساعت: 7:36

صفحه بندی