Read file just after uploading it

Read file just after uploading it

by Jean Michel -
Number of replies: 0

Hi all,

I need to add some special feature (in Moodle 2.2.3) when users upload files (only plain files) using the file browser: i want to read them (using web service and javascript) just after user select them and they are saved in server. This is because I want to process thir content to show user some stats about the file (count words,lines, etc)

I would like to do that in the resources module, but as far as I know, the filebrowser works in Ajax, and I don't know where the file in the system is located after I submit the form. I need to know it without reloading (using ajax).

Can anybody help me?

Thanks in advance.-Jean

Average of ratings: -