Uploading text file without saving? |
I have a form and I want to upload text file and then read it and display the content on a textarea. The text is just a temp file so I don't want to save it.
Currently I am using the upload library like this PHP Code: $config['allowed_types'] = 'txt'; I didn't specify the upload path in the config and want to only save the text to the temp folder. But that doesn't seems to work as it complains about invalid upload path.
Hi,
If you don't want to save the file and only display it in the browser, you could use JavaScript to do it in the user's browser. Have a look at this solution on StackOverFlow A good decision is based on knowledge and not on numbers. - Plato
(02-14-2019, 11:15 PM)salain Wrote: Hi, Hi, I would be running some filtering on the contents on the server side after upload, it's not just for display. |
Welcome Guest, Not a member yet? Register Sign In |