Skip to content

More options for file uploads#8

Open
martin67 wants to merge 2 commits into
mschilli:masterfrom
martin67:patch-1
Open

More options for file uploads#8
martin67 wants to merge 2 commits into
mschilli:masterfrom
martin67:patch-1

Conversation

@martin67
Copy link
Copy Markdown

@martin67 martin67 commented Nov 7, 2014

Add possibility to set custom title and/or description of the uploaded file.

Add possibility to set title and description when uploading files.
@mschilli
Copy link
Copy Markdown
Owner

Can you also add it to the POD docs, and provide an example so people know how to use it, please?

@martin67
Copy link
Copy Markdown
Author

Ok, I'll update that as well.

Regards
//Martin

2014-11-20 9:17 GMT+01:00 Mike Schilli notifications@github.com:

Can you also add it to the POD docs, and provide an example so people know
how to use it, please?


Reply to this email directly or view it on GitHub
#8 (comment)
.

@atoomic
Copy link
Copy Markdown
Collaborator

atoomic commented Jan 3, 2019

this looks good, but still need some POD update and basic usage so people can start using this feature. @martin67 are you still interested to add some doc/examples?

@atoomic
Copy link
Copy Markdown
Collaborator

atoomic commented Jan 31, 2020

@martin67 just checking if you are still interested adding the POD for this new feature?
thanks

@NetworkNed
Copy link
Copy Markdown
Contributor

With the addition of the rename method, the title option is scarcely necessary - I wouldn't have needed to write the rename method had this been available.

Using this code you can do:

  $drive_id = $gd->file_upload ( "/path/to/file" , $parent, $drive_id, "New Name" ) ;

The rename method was not available when @martin67 submitted this code, but now you can do the same thing with:

  $drive_id = $gd->file_upload ( "/path/to/file" , $parent, $drive_id ) ;
  $gd->rename (  $drive_id, "New Name" ) ;

I'd be inclined to add a $gd->description method rather than these options.

@atoomic
Copy link
Copy Markdown
Collaborator

atoomic commented Mar 17, 2020

@NetworkNed description method could be useful, feel free to submit a PR with it
thanks

@atoomic
Copy link
Copy Markdown
Collaborator

atoomic commented Nov 5, 2020

Hi @NetworkNed I would like to know if you could rebase your branch and provide some POD for it?
thanks

@NetworkNed
Copy link
Copy Markdown
Contributor

NetworkNed commented Nov 5, 2020

This isn't my branch. Were you thinking of @martin67?

My contributions were completed with 514b2e8 and 763baeb

With my comment above I intended to express that I think this pull request is obsolete and can be closed.

@atoomic
Copy link
Copy Markdown
Collaborator

atoomic commented Nov 5, 2020

oops sorry @NetworkNed I went too fast on it and was thinking you were the original author.
You are right I was mainly asking @martin67 if he has any interest in rebasing this Pull Request with some docs?

{ mimeType => $mime_type,
parents => [ { id => $parent_id } ],
title => $opts->{ title } ? $opts->{ title } : $title,
description => $opts->{ description },
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

description should be optional too
defined $opts->{ description } ? ( description => $opts->{ description } ) : ()

Copy link
Copy Markdown
Collaborator

@atoomic atoomic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make description optional and add some pod to advertise these new options

@atoomic
Copy link
Copy Markdown
Collaborator

atoomic commented Mar 31, 2022

@martin67 I can notice that this PR was waiting for some extra work from your side
Would you be interested in rebasing it and submitting it so we can get it in?
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants