Upload Class |
[eluser]JohnS901[/eluser]
Hello! I have some problem using the upload class upload.php Code: <?php upload_succes.php Code: <html> upload_form.php Code: <html> First time I tried i got redirected to example.com so i changed in config to http://localhost. When I upload image: RESULT: 10 2 URL:http://localhost/upload/index.php/upload/do_upload But my main URL is: http://localhost/email/index.php/upload HUH?? What to do?
[eluser]tomcode[/eluser]
It's because You point Your form to http://localhost/upload/index.php/upload/do_upload : The form_open_multipart('upload/do_upload') resolves to Your base url setting + 'upload/do_upload'. So I guess Your base url should be 'http://localhost/email/'. The base url setting is always with a trailing slash. Or did I got something wrong ? By the way, when building a new app, You could test with a simple second controller and a link in the welcome view whether all Your base config settings are good
[eluser]JohnS901[/eluser]
Thank you, thank you! nake: Just a ending question: How do I just put out the link to the images? And is this script "secured"? Oh and Is there anyway to change the error msg to like sweden?
[eluser]tomcode[/eluser]
Quote:How do I just put out the link to the images? Code: <?php Quote:And is this script “secured”?I do not know. In the image contained viruses will still be present. Quote:Oh and Is there anyway to change the error msg to like sweden?You can change the language system-wide to Swedish, You need to install the Swedish language from Wiki languages, make sure that all strings are present / translated.
[eluser]tomcode[/eluser]
The Swedish language pack is an for old version (1.6), You'll need to compare the strings / files with the English version and add the missing strings / files. Also make sure : 1. have it copied into the right place 2. the name given in the config/config.php must be the same than the folder name containing the language pack see User Guide, Language class |
Welcome Guest, Not a member yet? Register Sign In |