Update a Post after a user uploads a video

I found the reason this was not working was because of a conflict with another plugin that was preventing the page from refreshing properly if the user was not logged in.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)