101 Commits

Author SHA1 Message Date
David Monllao
2904bf9ddf MDL-38620 behat: New test
According to MDLQA-1175; test
removed from repository_upload as
is included in MDLQA-1175 test
2013-03-28 11:19:07 +08:00
David Monllao
e533d14f09 MDL-38184 behat: Fixing problem with Windows tests 2013-03-13 15:21:57 +08:00
David Monllao
4f07b654e1 MDL-38184 repository_upload: Adding tests 2013-03-11 06:56:02 +08:00
David Monllao
aa988a9a6c MDL-38184 repository_upload: New step definition 2013-03-08 11:57:56 +08:00
Frederic Massart
31581ae65d MDL-36426 repository: Prevent login_as() users to access private repositories 2013-03-04 02:38:35 +01:00
Frederic Massart
39bb9b1f00 MDL-36472 files: Improved file area uploads error messages. 2013-01-31 15:09:44 +08:00
Eloy Lafuente (stronk7)
663dbbc2e6 MDL-36933 Bump everything to 2012112900
(versions, requires and dependencies)
2012-11-30 03:30:09 +01:00
Frederic Massart
68acd1157e MDL-33766 files: Improved validation of areamaxbytes 2012-11-01 16:47:06 +08:00
Frederic Massart
21e3ea77a3 MDL-33766 files: Support for userquota/size limit in draft areas 2012-11-01 16:46:42 +08:00
Davo Smith
91813c1b4b MDL-35288 drag and drop upload - adjust error message text when attempting to upload a folder 2012-10-03 08:46:55 +01:00
Frederic Massart
21c08c63ca MDL-34458 Librairies: Replaced deprecated get_context_instance() 2012-07-24 16:58:17 +08:00
Davo Smith
970f0c0a36 MDL-34107 Upload repository - do not add a dot to files without an extension 2012-07-02 08:10:24 +01:00
Dan Poltawski
73ec069e3b Merge branch 'wip-MDL-33832-master' of git://github.com/marinaglancy/moodle 2012-06-20 16:55:29 +08:00
Marina Glancy
83d2700ec9 MDL-33832 Fixed filling of files.source field
- also supress the error on unserialise (because people already may have broken files.source field)
- also display details about unparseable JSON error
- make source field look the same across repositories
2012-06-20 16:09:37 +08:00
Dan Poltawski
6855fec7fd Merge branch 'MDL-33136_dndfilemanager_replace_file' of git://github.com/davosmith/moodle 2012-06-18 17:36:03 +08:00
Davo Smith
d0b2d44528 MDL-33136 Dndupload filemanager - user asked to rename/overwrite file when droping file with existing name 2012-06-18 08:55:41 +01:00
Eloy Lafuente (stronk7)
c5e783e512 MDL-33794 version.php: Bump all versions, requires and dependencies to 2012061700 2012-06-18 02:37:00 +02:00
Dongsheng Cai
d6453211b6 MDL-33513: Make files->source field consistent 2012-06-15 14:51:07 +08:00
Dan Poltawski
414ce30812 Revert MDL-33513
This reverts commit b2cf2b807f7a7c8d1a02ebb52038c61cc63a1494.
This reverts commit 24b96f01702571989fa77a05c5cd11b9fedc2745.
This reverts commit 39c60294a6a027ae56f4b9eda159bb589b60c0c0.
This reverts commit 8a288971e25eaaa4c8cbd67e450cee0e12435d4e.
2012-06-14 13:57:45 +08:00
Dongsheng Cai
8a288971e2 MDL-33513: Make files->source field consistent 2012-06-10 17:47:00 +10:00
Marina Glancy
efa28f30f2 MDL-33391 Files API, Repository : mimetype should be determined from file extension when possible 2012-06-05 13:29:07 +08:00
Marina Glancy
ae7f35b934 MDL-33144 display filetype icon and mimetype based on extension
- use finfo to determine mimetype of a file only when it is unknown from file extension
- display filetype icon and mimetype in filemanager based on file extension
- fixed a small issue with specifying extension instead of group in file_get_typegroup()
- allow only web-compartible image types when embedding into editor or using in database field
- created new groups web_video and web_audio to use in resource module
2012-05-23 14:51:55 +08:00
Marina Glancy
e563582760 MDL-33158 fixed bugs with restricting file typs in filepicker
- extension was returned without leading dot which resulted in improper validation
- fixed human-readable mime type in error message
- fixed youtube repository to support video files and pass filetype validation
2012-05-22 14:24:11 +08:00
Marina Glancy
559276b153 MDL-32247,MDL-32831,MDL-32900 Use correct url building of file type icons
- function get_mimetypes_array() now contains also information about filetype groups and language strings
- use 'smart' human-readable mimetype description
- never determine filetype group based on filetype icon image! remove function mimeinfo_from_icon()
- get rid of class filetype_parser and file lib/filestorage/file_types.mm, replaced with functions file_get_typegroup(), file_extension_in_typegroup() and file_mimetype_in_typegroup()
- support multiple icon sizes, not only 16 and 32
- retrieve filetype icon only using proper functions file_..._icon() from lib/filelib.php throughout the code
- increase size of repository thumbnails to 90 and icons to 24 (will take effect when new icons exist)
2012-05-21 16:01:04 +08:00
Dongsheng Cai
6723372514 MDL-28666 Extends repository to support references
1. Allow repository to create references to external contents
2. Extends files API to handle file references
3. Generic file caching
4. Backup/restore file references
5. Download external contents if repository uninstalled
6. Allow filepicker to display iframe
7. PHPUnit test suits
2012-05-21 11:57:51 +08:00
Davo Smith
32528f94e4 MDL-22504 Drag and drop upload course - enables upload of files, text and urls to a course page 2012-04-30 09:53:25 +01:00
Petr Skoda
58eb9b9f2a MDL-32094 fix E_STRICT problems in repository API 2012-03-18 18:31:32 +01:00
Marina Glancy
7f9358fcc0 MDL-31838: Allow caching static responses from repositories in file picker 2012-03-12 11:35:35 +08:00
Petr Skoda
e67bc2a410 MDL-30964 fix phpdocs in access.php files in all plugins 2012-02-27 07:23:10 +01:00
Sam Hemelryk
1ddb08084b MDL-31112 repository: Fixed phpdocs on new function 2012-02-15 12:44:32 +13:00
Davo Smith
87ed3a5c39 MDL-31112 Repository upload - check for completely null files (likely to be folders uploaded by mistake via drag and drop) 2012-02-14 08:25:04 +00:00
Petr Skoda
0790df351f MDL-30007 standardise repository version files 2011-11-29 22:06:27 +01:00
Eloy Lafuente (stronk7)
0a4ca115b2 Merge branch 'w33_MDL-26796_m22_arrayparams' of git://github.com/skodak/moodle 2011-08-24 14:06:22 +02:00
Petr Skoda
18bd7573d6 MDL-26796 convert array parameter cleaning to new functions 2011-08-18 08:40:33 +02:00
Petr Skoda
23bfe0a448 MDL-19380 reimplement antivir scanning in repositories 2011-08-18 08:37:40 +02:00
Dongsheng Cai
f392caba15 MDL-26388, pop up a dialog when attaching a file already being used in draft area. 2011-05-02 10:11:19 +08:00
Petr Skoda
431ac39634 MDL-26623 fix file permissions
The permissions are now going to be verified as part of the weekly release process.
2011-03-01 12:26:49 +01:00
Petr Skoda
db30cfca84 MDL-25215 fix file.JPG.jpg extension problems 2011-02-14 09:50:07 +01:00
Dongsheng Cai
7d2882c476 MDL-25215, file extension should remain unchanged when using save as field in filepicker UI 2011-02-10 09:40:09 +08:00
Dongsheng Cai
1298a11935 "MDL-25633 Filepicker upload should display better error report" 2010-12-10 03:16:59 +00:00
Dongsheng Cai
ffdd6d1806 MDL-24290, REPOSITORY revert previous changes on urlencode 2010-10-04 09:35:14 +00:00
Dongsheng Cai
8cc2bcf154 MDL-24290, REPOSITORY fixed urlencode string in filename 2010-10-04 09:31:08 +00:00
Dongsheng Cai
b8a6131b94 MDL-24441, enforce course max file size 2010-09-29 10:13:35 +00:00
Dongsheng Cai
0bd269b7a2 MDL-24410, repository upload plugin allows rename file 2010-09-29 07:05:51 +00:00
Petr Skoda
6bdfef5da9 MDL-24321 switching to standard stdClass() 2010-09-21 08:54:01 +00:00
Dongsheng Cai
cc674674a5 MDL-13766, improve repository plugins' icons 2010-09-10 07:10:30 +00:00
Petr Skoda
d078f6d38e standardized PHPDocs package info 2010-09-06 11:29:21 +00:00
Dongsheng Cai
432ba64b9b "MDL-23894 fixed user quota limit" 2010-08-24 07:18:08 +00:00
Dongsheng Cai
0f729672be "MDL-23823 allow users pick same file multi times in html editor" 2010-08-24 06:29:24 +00:00
dongsheng
e3b9156c46 REPOSITORY MDL-23533, fixed incorrect archetype 2010-07-28 08:56:49 +00:00