- PHP Version:5.3.11
- Server Software:(IIS) Microsoft-IIS/7.5
- File upload limit:Upload files up to 2 MB
- Config (Writeable):Config is writeable
- File Upload:Please check your settings (see warning below)
I've been testing owncloud as a way to allow school staff and students to easily upload content created on tablets to their Windows fileserver home directory.
I've gotten a proof of concept working but with one issue that I'm curious if anyone can help with. The issue is the hard coded "/files" directory that owncloud uses for the 'root' of a user's home directory. I recognize that the reason for doing it this way is to make sure that add-on data (like the gallery/pictures thumbnail cache) would not be viewed or seen by the end-user. That said, I'd still like to find out if we can remove the "/files" hard coding and allow owncloud to use the directory above as the 'root' of a user's home directory.
For example, a user access their files at the level of /var/www/owncloud/data/jsmith/files right now. I'd like to modify the code to have it be accessible at /var/www/owncloud/data/jsmith
I've already did a search for all lines that have '/files' or just 'files' (that pertains to user path and not the files path used for owncloud functions) in the owncloud php code and removed them including some modification of conditional if statement code. I've gotten it to show the Windows home directory correctly. However after the display the list of files, it just hangs. So obviously it is doable but it looks like some other areas are being missed.
sidenote: I'm curious also why the 'files' path is hard coded the way it is and is not a variable like the /data directory. I really think this would be a benefit to choose what the /files directory location or even be able to change it to a different name if it was not hard coded.
As for how I'm tying in owncloud to a Windows user fileserver. Here's some quick notes:
- I've created a Windows Server 2008 R2 server joined to our domain.
- Installed IIS as noted in the installation guide. I've installed owncloud as instructed in the guide.
- I created a directory symbolic link using mklink to point the /data directory to our network user fileserver
- I created a generic domain user account that is used to 1] run the IIS webserver and owncloud and 2] applied to the user's home directory with RW permission.
With this set up, a user can then use owncloud to upload directly to their home directory and then use their Windows/Mac workstation to edit the content further.
If anyone can help with figuring out how to remove the /files directory hardcoding or have another idea to unify a user's experience to get to their home directory whether on a Windows/Mac machine or owncloud that would much appreciated.