1

I want functionality where editor will be able to upload files and name that files whatever he wants, I just want additional field next to file upload field, is there any module which can do that?

Thanks.

2
  • check this drupal.org/project/ocupload
    – Bala
    Nov 7, 2013 at 11:52
  • Thank you for comment, I solved my problem using insert module but it seems ocupload is another solution.
    – otarza
    Nov 8, 2013 at 7:25

2 Answers 2

1

This functionality is already provided by Drupal core. Just edit the settings for your image field in content type and enable 'Enable Title field' to have Title field for your image field.

For example, Go to 'Structure » Content types » Article' and 'Edit' the settings for 'Image' field. (admin/structure/types/manage/article/fields/field_image)

There you will see two checkbox fields 'Enable Alt field' and 'Enable Title field' which can be enabled to provide image related info for each image upload.

1
  • 1
    the Title and Alt mentioned here create content for the alt= and title= attributes within the resulting <img> tag; they don't cause the uploaded file to be renamed value of title/alt.
    – Jimajamma
    Nov 7, 2013 at 13:24
1

I solved it using insert module, it did exactly what I wanted.

When I upload any file for example .pdf, there is a description field for every file.

insert module also integrates with ckeditor, every uploaded file has "Send to textarea" button and you can easily embed links to attachments wherever you want in your editor and title will be the text you entered in file description.

It is not file name, its just title for link but its exactly what I wanted.

UPDATE @amitgoyal's answer is better, so I checked his answer as correct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.