Commit Graph

83 Commits (8447307ed22f756779bd39a8e38a9ae19632ccb6)

Author SHA1 Message Date
Gerhard Killesreiter 1b7fd5e67b #54913, problem with checking filesize during uploading if user belongs into more than one role, patch by dopry 2006-03-24 17:45:04 +00:00
Gerhard Killesreiter 26612e9cbd #54298, Only user = 1 can upload files, patch by dopry 2006-03-21 11:44:46 +00:00
Gerhard Killesreiter 0de876d095 #54186, Uploads still listed on upload form after validation errors, patch by timcn 2006-03-16 15:27:45 +00:00
Gerhard Killesreiter b049f762c7 #53666, Invalid argument supplied for foreach() in upload_save, patch by Markus Petrux 2006-03-13 22:23:09 +00:00
Dries Buytaert c54de86134 - Patch #42358 by dopry et al: fixed problem with attaching files. 2006-03-10 19:03:25 +00:00
Dries Buytaert 28c0c6197a - Patch #52092 by wtanaka, dopry and moshe: fixed regression with hook_file_download. 2006-03-10 19:02:06 +00:00
Dries Buytaert 347a5bb5f6 - Patch #31354 by Junyor et al: move node revision information for files to a separate table. (Today's critical bugfix #1.) 2006-02-22 10:06:46 +00:00
Dries Buytaert 3603fe1bd8 - Patch #49912: www.drupal.org -> drupal.org. (Today's critical bugfix #5.) 2006-02-21 18:46:54 +00:00
Dries Buytaert 3698f85720 - Patch #50454 by DaveNotik: fixed syntax error. (Today's 1th critical bugfix) 2006-02-21 08:36:10 +00:00
Dries Buytaert 68820e23df - Patch #49476 by Moshe: fixed incorrect access check. 2006-02-20 16:44:54 +00:00
Steven Wittens d38429248e - #47510: Show JavaScript alert when PHP errors occur 2006-02-05 19:04:58 +00:00
Dries Buytaert 7e2e715393 - Patch #20795 by Steven: improved consistency of the code. 2006-01-08 12:20:55 +00:00
Dries Buytaert c297f2e09c - Patch #41161 by Moshe: bugfix: hide the upload form when uploads are not enabled for a node type. 2006-01-08 12:12:20 +00:00
Dries Buytaert f940d8a290 - Patch #43362 by dorpy, junyor: critical bug fix: uploads loose their state. 2006-01-05 21:03:31 +00:00
Dries Buytaert ea2d791095 - Patch 41169 by Chris: got rid of expensvie object 2 array casts. 2005-12-31 10:48:56 +00:00
Dries Buytaert 0dfc8e059f - Patch #41437 by webchick: improved code comments. 2005-12-17 17:24:46 +00:00
Dries Buytaert 922a46d281 - Patch #34920 by Morbus/webchick/tangent: fixed order of form fields. 2005-12-15 16:24:40 +00:00
Dries Buytaert 810e75050d - Patch #39358 by m3avrck and Souvent22: make the upload.module work + revisions fixes. 2005-12-10 19:43:12 +00:00
Dries Buytaert 28fdb3975e - Patch #39778 by chx: obliterate nodeapi op form in favor of the forms API's way of doing things. Tested with help from webchick. 2005-12-05 09:11:33 +00:00
Dries Buytaert 0f6067fc84 - Removed valid_input_check(). 2005-11-30 11:03:58 +00:00
Dries Buytaert 2d0df351d7 - Various fixes. Updated CHANGELOG.txt 2005-11-29 20:17:10 +00:00
Dries Buytaert c647b39c2c - Patch #37798 by Neil: fixed problem with node settings. 2005-11-27 11:11:46 +00:00
Dries Buytaert b1b1e2045f - Patch #37798 by Neil: allow non-workflow form elements on the node type settings page. 2005-11-25 10:11:59 +00:00
Dries Buytaert 4febf6443b - Patch #35121 by m3avrck: fixed problem with list and description values aren't saved for uploaded files. 2005-11-21 15:36:53 +00:00
Steven Wittens daca20e034 #37378: Missing for _form_builder() in js upload 2005-11-13 02:00:37 +00:00
Dries Buytaert aeed4cd8e4 - Patch #35644 by webchick: forms API simplificiations. 2005-11-12 11:26:16 +00:00
Dries Buytaert a8b218827a - Patch #26139 by webchick / Kieran / documentation team: improved admin help of core modules! / 2005-11-01 10:17:34 +00:00
Dries Buytaert ef7d2c8a9f - Patch #34920 by tangent: reorganized the node submission form a bit. 2005-10-28 14:04:20 +00:00
Dries Buytaert 75fe6b6c0a - Patch #33752 by chx, adrian, et al: another batch of form API changes/fixes. 2005-10-11 19:44:35 +00:00
Dries Buytaert a1ae4da70b - Removing tabs and trailing whitespaces. 2005-10-07 06:51:43 +00:00
Dries Buytaert 7e1527ee61 - Patch #29465: new form API by Adrian et al.
TODO:
  + The contact.module was broken; a new patch for contact.module is needed.
  + Documentation is needed.
  + The most important modules need to be updated ASAP.
2005-10-07 06:11:12 +00:00
Dries Buytaert 53bdeae273 - Modified patch #30775 by timcn, Souvent22, m3avrck: give file uploads descriptions.
(Modified the form a bit.)
2005-09-27 15:54:39 +00:00
Steven Wittens 69247d7aad - #30128: Call by reference left-overs 2005-09-02 02:11:41 +00:00
Dries Buytaert e03ce2f996 - Patch #28483 by Steven: JavaScript enabled uploading.
Comment from Steven: It does this by redirecting the submission of the form to a hidden <iframe> when you click "Attach" (we cannot submit data through Ajax directly because you cannot read file contents from JS for security reasons).  Once the file is submitted, the upload-section of the form is updated.  Things to note:

    * The feature degrades back to the current behaviour without JS.
    * If there are errors with the uploaded file (disallowed type, too big, ...), they are displayed at the top of the file attachments fieldset.
    * Though the hidden-iframe method sounds dirty, it's quite compact and is 100% implemented in .js files. The drupal.js api makes it a snap to use.
    * I included some minor improvements to the Drupal JS API and code.
    * I added an API drupal_call_js() to bridge the PHP/JS gap: it takes a function name and arguments, and outputs a <script> tag. The kicker is that it preserves the structure and type of arguments, so e.g. PHP associative arrays end up as objects in JS.
    * I also included a progressbar widget that I wrote for drumm's ongoing update.php work. It includes Ajax status updating/monitoring, but it is only used as a pure throbber in this patch. But as the code was already written and is going to be used in the near future, I left that part in. It's pretty small ;). If PHP supports ad-hoc upload info in the future like Ruby on Rails, we can implement that in 5 minutes.
2005-08-31 18:37:30 +00:00
Dries Buytaert d9d6a6e05c - Patch #7582 by Gerhard: improved node revisions!
All node revisions were stored in a serialized field in the node table and retrieved for _each_ page view although they are rarely needed. We created a separate revisions table which would be in principle identical to the node table, only that it could have several old copies of the same node.  This also allows us to revision-related information, and to provide log entries to non-book pages when a new revision is being created.

TODO:

1. Provide upgrade instructions for node module maintainers!
2. Upgrade modules that implement node types.
3. Provide an upgarde path for revisions.  Dependency on the upgrade system.
2005-08-30 15:22:29 +00:00
Dries Buytaert 307eefd1ce - Patch #29737 by m3avrck: fixed broken link in upload.module. 2005-08-29 19:01:18 +00:00
Dries Buytaert 7b8a409675 - Patch #29385 by chx: no ?> add end of files. 2005-08-25 21:14:17 +00:00
Dries Buytaert 12c5614599 - Alternative solution for #28721: expand "File attachments"-group on node edit form when files are attached. 2005-08-17 19:27:03 +00:00
Dries Buytaert 7c6a21aedd - Patch by Uwe: tidied up the CVS IDs. 2005-08-11 13:02:08 +00:00
Dries Buytaert 53195677b6 - Patch #24183 by drumm: remove unnecessary setting from upload module. Currently the upload module checks two max file sizes. First it checks a global option; if its too big it quits. Then it checks another max file size (or even sizes) related to the roles which a user is in. We can remove the global option since the individual roles are checked. 2005-07-22 19:06:19 +00:00
Dries Buytaert 3a457c3614 - 'File Attachments' -> 'File attachments'. 2005-07-03 15:47:11 +00:00
Dries Buytaert 58aee8cdad - Patch #25603 by Stefan: made the sizes of forms consistent.
TODO: document the defaults in the PHPdoc comments.
2005-06-27 18:33:33 +00:00
Dries Buytaert e550f84162 - Patch #16204 by Thox: committed the collapsible form elements patch.
NOTE: this patch works well, but the improved node edit form still has
        some rough edges.  It is important that we continue to improve
        usability.  Give it a try.
2005-06-21 09:45:45 +00:00
Steven Wittens 8bfe10bb96 - Typo in upload messages: %quote -> %quota 2005-05-31 04:10:21 +00:00
Steven Wittens 52fd9fffa9 - #23213: Report upload size limits in megabytes, not bytes. 2005-05-25 04:27:55 +00:00
Dries Buytaert 52c383d2e4 - Patch #23160 by drumm: fixed status message by adding a missing string substition. 2005-05-19 19:33:49 +00:00
Steven Wittens 5154c3aca4 - Fixing some plain/url check calls. 2005-05-18 21:12:17 +00:00
Dries Buytaert 33f4134fac - Patch #22723 by ejort: 'from' to 'FROM'. 2005-05-14 18:15:23 +00:00
Dries Buytaert 14f0d9a90a - Patch #22806 by Neil: replaced left-over <em>foo<em> with theme('placeholder', 'foo') 2005-05-14 17:20:47 +00:00
Steven Wittens 898e2b6688 - #21429: Maximum upload file size was checked in bytes, not megabytes. 2005-05-07 02:00:34 +00:00