In the free program with seven Cow cloud storage, the code for uploading images has been written. The page has basic authentication to determine if the user has logged in.
However, if the user login, constantly post upload pictures, and then outside the chain, will let me waste a lot of picture storage traffic.
How to prevent this phenomenon?
Reply content:
In the free program with seven Cow cloud storage, the code for uploading images has been written. The page has basic authentication to determine if the user has logged in.
However, if the user login, constantly post upload pictures, and then outside the chain, will let me waste a lot of picture storage traffic.
How to prevent this phenomenon?
Change the upload process to get tokens again for each upload, and then:
1, in the cookie or session to record the user's upload information, business services to do upload interval or upload times limit.
2, reduce the expiry time token, to avoid users with abnormal means to get tokens and constantly upload.