This is what i found in my error log file related to my action file
PHP WARNING: 2013-10-07 18:58:38 (UTC): "error_log() [<a href='function.error-log'>function.error-log</a>]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()" in file C:\\wamp\\www\\Elgg_for_testing_purposes\\elgg-1.8.16\\mod\\project\\actions\\project\\upload.php (line 21)
Finally i figured it out, i had nested form tags well thank you ismayil
If you are facing this type of problem check out this link below on stackoverflow
http://stackoverflow.com/questions/3586919/why-would-files-be-empty-when-uploading-files-to-php
Is there any way that I can preload the filename field in the form with a known default file?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.