Fixed issue where uploaded file not immediatly accessible because upload API responds before the upload has completed.
This commit is contained in:
1 parent
1c902af363
commit
4b244f43e0
1 file changed
+1
-1
+1
-1
@@ -306,11 +306,11 @@ else
|
||||
throw err if err
|
||||
gs.close((err) ->
|
||||
throw err if err
|
||||
)
|
||||
response.writeHead(201)
|
||||
response.end()
|
||||
)
|
||||
)
|
||||
)
|
||||
else if request.method == 'DELETE'
|
||||
mongodb.GridStore.unlink(db.mongoDb, filename, (err) ->
|
||||
response.writeHead(200)
|
||||
|
||||
Reference in new issue
Block a user