meyou12345678's avatar

an impossible error

a management system where different user have different role, and there is a time limit of a task for each user, if the time limit exceeds, the task gets disabled.

I changed a role for a user in the sql server databse. also changed the time limit of a task for a user so the task gets enabled. after changing above details in the table on database in Microsoft sql server.

the user is able to perform a task that does not require uploading any files. but the user can,t upload a file, the file is not uploading on the local storage, the weird part is the json response is showing code 200 as if everything is good no error, but the error box is popping up.

wanted to know what could be the issue, is it that i have to update something after making any changes on the tables of the database ? like update model, or do i have to clear cache, or may be changing the roles effected all the tables of the database but not possible since he can perform normal tasks that doesn't require file uploading..!!!

any suggestions?

thanks.

0 likes
3 replies
siangboon's avatar

after take a glance on your long description without code, i only see file not able to upload issue... usually the common issue is forgotten the enctype="multipart/form-data" or permission issue

<form action="upload.php" method="post" `enctype="multipart/form-data"`>
1 like
meyou12345678's avatar

thanks siangboon for the reply,

the scenario is that the file uploading was working fine at first no issue, could not upload after i changed some information in the user table on the database, all the files and codes are working file no errors, it is something else that i am missing, like database migration or something else that i don't know. wondering if i have to do something after changing some user data in the user table on the database?

thanks again for the reply.

Snapey's avatar

no, nothing to change after " changing some user data in the user table on the database "

Unless you have implemented caching.

1 like

Please or to participate in this conversation.