Need someone to either show me of help out with an image uploaded to put into the form for creating a banner or changing a banner. This would be a really cool feature but i have not seen a module do it yet so can someone tell me a good module that does it so i can copy or show me how to do it?

Comments

coolestdude1’s picture

Title: Image uploaded and Image chooser » Image uploader and Image chooser
coolestdude1’s picture

currently deriving the code from the user module, feature will be available withing next release

coolestdude1’s picture

Version: 6.x-1.2 » 6.x-1.4

still working on this feature about half done
-forms are done
-file does not save
-file does not move (probably due to above)
-file directory and name cant be parsed (probably due to above)

inders’s picture

Issue tags: +ahah, +image upload, +ahah upload

Hi,

Are u looking for: http://api.drupal.org/api/drupal/developer--topics--forms_api_reference....

U want to implement some Ahah based upload form for new banner uploads?

Thanks
-Inder Singh
http://indersingh.com
http://indiapoly.com

inders’s picture

here is webfm module which implements ahah upload for images:
http://drupal.org/project/webfm
You can see screenshot of functionality.

upload module already implements this functionality:

$form['new']['attach'] = array(
      '#type' => 'submit',
      '#value' => t('Attach'),
      '#name' => 'attach',
      '#ahah' => array(
        'path' => 'upload/js',
        'wrapper' => 'attach-wrapper',
        'progress' => array('type' => 'bar', 'message' => t('Please wait...')),
      ),
      '#submit' => array('node_form_submit_build_node'),
    );

Thanks
-Inder Singh
http://indersingh.com
http://indiapoly.com

coolestdude1’s picture

Version: 6.x-1.4 » 6.x-1.5

Hey thanks Inder Singh

I will hack away at this as soon as my company resumes from holiday.

Expect this to be done soon after i get back to my work computer!

-coolestdude1

coolestdude1’s picture

i am trying certain things but they are not working can you go into more detail of how to accomplish this?

coolestdude1’s picture

Category: feature » task

I have some good leads. So it seems that even if you webserver has access to write documents in all folders it is still drupal determining if you can actually place a file somewhere. So it seems like any folder i specify will have to be inside of the files directory by default this is the sites/default/files folder. Will try again in a few days to get this fixed for drupal 6 and then for drupal 7 write it from scratch.

coolestdude1’s picture

Version: 6.x-1.5 » 7.x-1.x-dev
Issue summary: View changes
Status: Active » Fixed

Never updated but I got this working in Drupal 7. Woops

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.