           type:         opts.type
           size:         opts.size
           extension:    extension
-          _storagePath: path.replace "/#{fileName}", ''
+          _storagePath: path.replace "#{nodePath.sep}#{fileName}", ''
 
         result._id = Random.id()
 


    self       = @
    opts      ?= {}
    opts.path  = "#{@storagePath}/#{FSName}#{extensionWithDot}"
    opts.type  = @_getMimeType opts
    opts.meta ?= {}
    opts.size ?= buffer.length

    
    {extension, extensionWithDot} = @_getExt fileName
    opts.meta ?= {}
    opts.path  = "#{@storagePath}#{nodePath.sep}#{FSName}#{extensionWithDot}"

    storeResult = (result, callback) ->
      result._id = fileId
