Why not just a config option for the path with a default value so the user can change it if they need to? If you hardwire too much in it becomes less flexible to the users potential needs.
Right now the developer does have the option of changing the config in config/upload_manager.php.
Line 17 is this:
$config[‘upload_dir’] = ‘upload_directory’;
I’m pretty sure that a simple change to:
$config[‘upload_dir’] = ‘***/upload_directory’;
where *** is their sub directory would make it work for people having their codeigniter install in a sub directory. The problem is, I don’t have a WAMP install or environment where I can test this out.
So the upload directory is not exactly hardwired into the uploader. I’m just not sure I can come up with a solution that works for everyone. If you browse through the forum and look at people having issues related to the standard uploader, there are issues related to the the ‘upload_path’ config item that make it difficult for my uploader to work “out of the box” for everyone. It’s really a CI issue. I’ll try to make some changes to make it easier for everyone to configure, and add some documentation to clarify usage.
As I mentioned above, I’m going to try to see if I can use the FCPATH constant to fix things. Since the upload class config item ‘upload_path’ can be an absolute path, I don’t see why I couldn’t use that in the _set_upload_location() and _make_directories() methods in MY_Upload. I’ll give it a shot, and hopefully I can get people to confirm that it works or doesn’t work.