Fixed issue where uploaded file not immediatly accessible because upload API responds before the upload has completed.

This commit is contained in:
Zaid Abdulla committed 2014-07-19 06:58:48 +03:00
1 parent 1c902af363
commit 4b244f43e0
1 file changed
+1 -1
+1 -1
View File
@@ -306,11 +306,11 @@ else
throw err if err throw err if err
gs.close((err) -> gs.close((err) ->
throw err if err throw err if err
)
response.writeHead(201) response.writeHead(201)
response.end() response.end()
) )
) )
)
else if request.method == 'DELETE' else if request.method == 'DELETE'
mongodb.GridStore.unlink(db.mongoDb, filename, (err) -> mongodb.GridStore.unlink(db.mongoDb, filename, (err) ->
response.writeHead(200) response.writeHead(200)