Bart Visscher
179b42c56d
Fixed review issues
11 years ago
Bart Visscher
8c5df31c49
DRY use OC_Template::printErrorPage
11 years ago
Bart Visscher
df8ad46dae
Change exit calls to throwing an exception
This way the error won't be fatal in a unit test
11 years ago
mvn23
59fa3055e1
Reviewed code for X-Sendfile2
Made some small changes which might have caused a segfault on ci.tmit.eu earlier.
11 years ago
mvn23
3f20a080fe
Revert most changes for testing
11 years ago
mvn23
a25bfa9291
Update files.php
11 years ago
mvn23
46f97f4c38
Implement X-Sendfile2 for resume support in LigHTTPd
LigHTTPd does not support HTTP Range headers with the X-Sendfile header in the way Apache does. Instead, it needs to be handled in the backend. This commit does exactly that, using the X-Sendfile2 header to send ranges of files.
To accomplish this without breaking web servers that don't support X-Sendfile2, a new variable MOD_X_SENDFILE2_ENABLED was introduced to separate this method from X-Sendfile and X-Accel-Redirect.
11 years ago
Michael Gapczynski
9bebf9b4c8
Don't set Content-Length header if size is unknown
11 years ago
Valerio Ponte
033c94d076
fixed xsendfile zip generation race condition
11 years ago
Olivier Tétard
17fd6482d8
Fix file sharing via public link for one particular file.
Fix OC_Files::get() to not return the first character of the filename
if only one file is requested.
11 years ago
Valerio Ponte
99c873ea29
fixed typo that broke xsendfile
11 years ago
Arthur Schiwon
f4a326173e
fix foldersize check to validate zip input size
11 years ago
Björn Schießle
ce9942331e
create a meanigful file name if files are from the root folder
11 years ago
Björn Schießle
4a4f705adc
json encode list of files
11 years ago
Bart Visscher
ffae6f4b84
Style-fix: Breakup long lines
11 years ago
Michael Gapczynski
ca4c006d5a
Make zip downloads use actual folder names, fix spelling mistakes
11 years ago
Bart Visscher
5bfe4adbaa
Whitespace cleanup
11 years ago
Michael Gapczynski
b035626709
Retrieve storage correctly, filename is not the mountpoint
11 years ago
Michael Gapczynski
65f1e52107
Change old is_readable to isReadable, fixes downloads
11 years ago
Thomas Mueller
186147d1ee
refs #933 send content length header - this will allow the browser to show the progressbar
11 years ago
Jörn Friedrich Dreyer
b6eb95349e
fix utf8 filenames in ie download response header according to rfc5987, see http://stackoverflow.com/questions/93551/how-to-encode-the-filename-parameter-of-content-disposition-header-in-http
11 years ago
Robin Appelman
c6a5ce54a7
these functions should be static
11 years ago
Bart Visscher
85bd28c508
Fix some of "Closing brace must be on a line by itself"
11 years ago
Robin Appelman
bcb27c81d4
use new obEnd function instead of ob_end_clean
11 years ago
Robin Appelman
288ecf318c
add getFileInfo and getDirectoryContent to OC_Files for compatibility
11 years ago
Valerio Ponte
de7e419610
Fixed style according to owncloud styleguide
11 years ago
Valerio Ponte
8e190a5a97
Moved X-Sendfile headers into OC_Files::get
now should work with temp files too
11 years ago
Thomas Tanghus
56239df2e7
Update all to use OCP\PERMISSION_* instead of OCP\Share::PERMISSION_*
11 years ago
Robin Appelman
ae74c54d65
normalize filepaths in OC_Files::getFileInfo
11 years ago
Michael Gapczynski
3d13c9db70
Return empty array if file does not exist inside Shared folder, fixes issue #91
11 years ago
Felix Moeller
30d7993e01
Checkstyle fixes: NoSpaceAfterComma
11 years ago
Felix Moeller
afadf93d31
Checkstyle: many fixes
11 years ago
Robin Appelman
5bfff6c56e
use absolute paths when resolving mount points
11 years ago
Robin Appelman
3437071cf1
remove old searchByMime
11 years ago
Robin Appelman
6db81afab9
move some stuff to the new api
11 years ago
Robin Appelman
39adadd3e3
move the cache api from OC_Files to filesystem(view)
11 years ago
Robin Appelman
5a3d6805a2
cleanup OC_Files a bit
11 years ago
Felix Moeller
2d61f03452
More Checkstyle cleanup
This is for all LowerCaseConstant warnings
11 years ago
Felix Moeller
6a00a6b9ed
Make Jenkins more happy.
This is NoSpaceAfterComma
11 years ago
Robin Appelman
707bd68bb4
automatically scan files when needed
11 years ago
Robin Appelman
2522c25af7
use OC_Files::getFileInfo and OC_Files::getDirectoryContent as high level api for the filecache
most apps would want to use this api instead of using the cache directly
11 years ago
Robin Appelman
1901ac8b17
drop depricated is_readable and is_writable
11 years ago
Robin Appelman
cfa036eaa9
drop filectime from the filesystem api's
11 years ago
Sam Tuke
8b01286a5d
Merged branch 'master'
11 years ago
Robin Appelman
aaa1b73364
don't use depricated OC_Filesystem
11 years ago
Robin Appelman
035d83fe91
don't use the workaround for shared files on the /Shared folder
11 years ago
Michael Gapczynski
025d308929
Actually fix shared webdav access
11 years ago
Michael Gapczynski
33d1906f23
Fix getting file info for subfolders in shared folders
11 years ago
Bart Visscher
737a6730db
Add OC_Files::searchByMime function
Include shared files in result
11 years ago
Bart Visscher
a80e0403a1
Fix getting individual shared file information
11 years ago