Closed (fixed)
Project:
Drupal.org security advisory coverage applications
Component:
module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Jan 2012 at 16:50 UTC
Updated:
21 Jul 2012 at 15:37 UTC
With Bulk Media Upload you can upload a bunch of media files and a new node will be created for every file. The files are selected via a browser file upload dialog.
Also default values can be chosen for the other fields assigned to the new node.
Drupal: 7.x
Sandbox Link: http://drupal.org/sandbox/axe312/1414286
Git: git clone --branch master axe312@git.drupal.org:sandbox/axe312/1414286.git bulk_media_upload
Comments
Comment #1
misc commentedHi,
Welcome with you application.
I di a automatic review of the code, and you have som coding standards issues to take care about:
http://ventral.org/pareview/httpgitdrupalorgsandboxaxe3121414286git
Also you should not work in the master branch, you should work in 7.x-1-x-branch and only leave a README.txt pointing to the correct branch.
Comment #2
axe312 commentedcoding standars issues fixed and switched to 7.x-1.x branch!
--> http://ventral.org/pareview/httpgitdrupalorgsandboxaxe3121414286git
Comment #3
peterx commentedA question about "bulk upload". Do you mean an archive, multiple file entries, or reading a directory loaded via FTP? There are people wanting each approach. If you define your module use, a prospective user can decide without downloading your module.
Comment #4
axe312 commentedFiles can be uploaded via drag and drop and multi file select.
An example of the used javascript widget can be found here: http://plupload.com/example_queuewidget.php
Archives and ftp-upload are not supported.
Comment #5
Robertas commentedReview of the 7.x-1.x branch:
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. Get a review bonus and we will come back to your application sooner.
Source: http://ventral.org/pareview - PAReview.sh online service
Comment #6
klausiNo manual review given, and the minor coding style issues do not justify the "needs work" status.
The response time for a review is now approaching 4 weeks. Get a review bonus and we will come back to your application sooner.
Comment #7
jygastaud commentedHi,
I made a quick look at your module which looks interesting.
However it could be interesting if you add a button in "media" which links with the "bulk media upload" form.
Also, you may consider to no restrict upload with content types but use all entities because we can add media files on every entities on a Drupal website.
Comment #8
jygastaud commentedManual review
'#markup' => '<p>There was no media uploaded in this session.</p>',Text should be wrap into t() function. Be aware to not includeand
into t()
'status' => $node->status ? t('published') : t('not published'),Did you try what append if it use with a module which override standard status?Comment #9
jygastaud commentedComment #10
fugazi commentedFirst many thanks for the wonderful project.
The project will be pursued further? I have problems to create the Optional sub-directory in the destination directory of the upload, unfortunately, is not accessed it.
I would like to use the modules for my project. But I need a better structure of the data.
Many Thanks
Erstmal vielen dank für das Wunderbare Projekt.
wird das Projekt noch weiter verfolgt? Ich habe Probleme das Optionales Unterverzeichnis im Zielverzeichnis des Uploads anzulegen, leider wird nicht drauf zugegriffen.
Ich würde gerne das Module für mein Projekt verwenden. Aber ich brauche eine bessere Struktur der Daten.
Vielen Dank
Comment #11
patrickd commentedif you got a specific feature request for this module, please create a separate issue in the module's issue queue.
this issue is only related for full project application of axe312
Comment #12
fugazi commentedmany thanks, I will do.
Comment #13
axe312 commentedjygastaud thank you very much for your manual review. I am sry that I answer so late, but i was very busy the last weeks.
Global:
.module-file: everything fixed
.summary.inc:
text in #markup is now wrapped in t()
unused code removed
These part of the module is "stolen" from the drupal core. Its about 99% the same code like admin/content/node. I tried to use the functions from admin/content/node, but it was not possible. So i had to copy the code.
I think its not necessary to change this part, because its the way the drupal-core does it.
If iam wrong with any of my opinions, feel free to correct me! :)
Comment #14
brentratliff commentedHaven't had a chance to check the code for standards, but in my testing it works as advertised. I would rather it create entities, but it's an endorsement from me.
Comment #15
anwar_maxManual Review:
Most of the things are looking good except few things. :)
1) bulk_media_upload_summary(): doc block is wrong, this is not a hook, this is a form builder function. See http://drupal.org/node/1354#forms Same on bulk_media_upload_admin_validate() and others. Please check all your function documentation.
2) You can remove bulk_media_upload_upload_form_validate() funtion from bulk_media_upload.upload.inc
Comment #16
jhedstromThis module works as advertised. Remaining code cleanup can be done in the issue queue once it's a proper module.
Comment #17
mitchell commentedThanks for your contribution, axe312!
I updated your account to let you promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on irc in #drupal-contribute. So, come hang out and get involved!
Thanks to all the participants for your awesome reviews! Also, terrific job to those already getting involved in the project's issue queue!!
Comment #19
nedjo@jygastaud and @brentratliff: Re extending bulk media upload to all entity types, I posted a patch at #1678240: Enable bulk media upload for all fieldable entity types if you have time to review....
Comment #19.0
nedjoadded info for the file dialog upload thing