New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Need check file before upload ajax
hello,
i have code (PHP) upload multi file with ajax. current, the code can check file exist after upload. now i want it check file exist before upload. the filename after upload converted to md5(filename).mp4
source file: https://github.com/jazz1611/upload-file-ajax
regards,
Comments
Maybe upload the code to GitHub, not zippyshare, if you want people to look at it much easier.
hello, thank you! i was upload to GitHub, hope you can help me.
Kinda hard to understand what you mean. You want to check if user has selected a file to be uploaded before it gets to upload.php?
Okay here is my understanding
Correct me if i am wrong
You want to verify the file exists before uploading saving the hassle
well you can do it using two ways
1.
get file name of the file being uploaded and ajax query db/folder directory if file exists
2.generate md5/sha1 hash of file before uploading and checking the hashed of all the uploades files
Not sure how you would implement no 2
Yes, i want the code very/check file have exist or not in folder uploads. If yes, will skip that file. and no will upload.
I don't know code ajax/jquery to very/check file have exist in folder upload when start upload. after file uploaded, the filename.mp4 will hash md5(filename).mp4. can you help me to code it? thank you!
i tried this code but ajax not capture the response from "progress-group"
You are supposed to make two queries. One with file list to know if file exists. Another to upload.
that reason i need help for code to ajax. because the code have public on internet. i don't write that code
I have given you a valid example. You need to tweak it to fit your solution.
Did you take the code from somewhere?
http://www.qhonline.info/php-nang-cao/100/huong-dan-upload-file-bang-ajax-ket-hop-voi-progress-bar.html
I don't think he is looking for advice and tips. He is looking for someone to code him the entire thing (for free).
Yap. That's him. He admitted that he took the original code from internet and he specifically ask you guys to help him writing the code.
He need a complete code. Not a snippet.
Should have gone to fiverr
Just use Google forms. You don't need to code anything.
And I am not willing to provide that unless paid.
@jazz1611 maybe ist time to offer $15 to AlyssaD
What if AlyssaD has a higher hour rate? Think about it : |
Rude.
well, this can just be the start of negotiations.
thank for all, my friend was help me fixed this code. hope mod can close my topic.
I was about to drop the complete solution to your code, but since you fixed it! : )
hello, yes if you can. maybe your code is better than of my friend
@armandorg You just got called out, bittch!
@jazz1611 now pay $20 to armandorg
Ah, the typical scenario.
A guy tries to get something done but gets embarrassed instead, so he says his "friend" got it done.
Happens often on LET.
from now on if i see jazy i will ask him to pay.
Should have gone with @deank fix it for me.