-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Edge Case] Handle the Empty file Upload #104
Comments
I would like to work on this issue! |
@Eliboss, sure please go ahead, I think this could be accomplished while the file is captured, you can read the contents of the file, similar code is available here CryptoDrive/src/pages/Login/index.jsx Line 44 in 3818aa7
so you could similarly read the file, or compare its size and ensure it's not 0 bytes. and then send an alert and return. |
Awesome, I'll work on it today! |
Update: I was able to upload a .pem file on the signin page without having an account (Though, of course, couldn't cont. past that page) |
@Eliboss Thanks for solving the issue. If you want to upload any file then metamask is needed in each timestep. The issue is not for only pem file it's about the files in drag and drop as well |
ah, ok. It sent me an alert that only .pem files could be uploaded on the signin page. If I need to check the drop in drag, Ill need a login. But I was having issues with that (see above comment). If you can get me connected to that, Ill look at it tomorrow. |
@Eliboss mostly looks like a meta mask error, do you have MetaMask extension installed? |
ok @Eliboss |
@Eliboss One more thing is you should not make any PR to main. Any PR should be made to staging as per the guidelines. |
@ksdkamesh99 I dont see your discord link anywhere. Can you send it to me? |
If the user uploads an empty file then it should stop the upload and send an alert to the user stating that the uploaded file is empty.
The text was updated successfully, but these errors were encountered: