spaces in the name

32 views
Skip to first unread message

abdulbasitnawab

unread,
Feb 21, 2011, 6:15:38 AM2/21/11
to GlobalGiving API
Hi
if the image name contains the spaces like http://cloud.globalgiving.org/pfil/6672/Lawrence
Tembo with Auntie, June 2009.jpg it says no image found can any one
faced such issue if yes please reply

Kevin Conroy

unread,
Feb 21, 2011, 8:44:08 AM2/21/11
to GlobalGiving API
None of the image URLs should contain spaces. On the backend, when
users upload files, we replace spaces with "_" characters. If the API
is returning a URL with spaces, then that's an error with the API that
we need to fix.

Can you provide a sample API call that returns the bad URL? I just
checked this project but it seems okay (doesn't return any URLs with
spaces):

curl -H "Accept: application/xml" -H "Content-Type: application/xml" -
X GET "https://api.globalgiving.org/api/public/projectservice/projects/
collection/ids?api_key=YOUR_API_KEY_GOES_HERE&projectIds=6672"

Thanks,
Kevin Conroy
kco...@globalgiving.org

On Feb 21, 6:15 am, abdulbasitnawab <abdulbasitna...@googlemail.com>
wrote:
> Hi
> if the image name contains the spaces likehttp://cloud.globalgiving.org/pfil/6672/Lawrence

Abdul Basit

unread,
Feb 21, 2011, 10:11:33 AM2/21/11
to globalgi...@googlegroups.com
but there are spaces in the link see like
<imagelink size="thumbnail">

<url>

http://cloud.globalgiving.org/pfil/6672/Lawrence Tembo with Auntie, June 2009.jpg

</url>

here is the link

https://api.globalgiving.org/api/public/projectservice/projects/6672/imagegallery?api_key=e1e81c25-cd1a-4a60-ade0-b2459a88f8f7

Can you please confirm what the issue is see http://www.thesafaripartners.com/project-details.html?projId=1168 and go to images tab ;(



--
You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
To post to this group, send email to globalgi...@googlegroups.com.
To unsubscribe from this group, send email to globalgiving-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/globalgiving-api?hl=en.




--

jazakAllah Khair,

Abdul Basit Nawab
+92 333 9868396
www.hawk.pk
www.abdulbasitnawab.com


Kevin Conroy

unread,
Feb 21, 2011, 10:42:07 AM2/21/11
to globalgi...@googlegroups.com
Hi,
I can confirm that this is a bug with the API. I've created a bug ticket in our system and we'll try to get this fixed in the next few days. As long as you're pulling the image URLs from the API your system should get the fix as soon as we patch it on our end. Sorry for the trouble. We'll reply here once it's resolved.

Please let us know if you have any other questions.

Thanks,
Kevin

--
Kevin Conroy - GlobalGiving.org

Director of User Experience and Product Development
Phone: 202-232-5784

Steve R.

unread,
Feb 22, 2011, 4:18:14 PM2/22/11
to GlobalGiving API
Hi Abdul,

The bug that you uncovered in the Image Link\s has been resolved. Your
API calls will work fine now, as far as accessing the various image
sizes.

Do let us know if you experience any other problems, or have any
questions about the API here on this forum.

Thanks,
Steve


On Feb 21, 10:42 am, Kevin Conroy <kevincon...@gmail.com> wrote:
> Hi,
> I can confirm that this is a bug with the API. I've created a bug ticket in
> our system and we'll try to get this fixed in the next few days. As long as
> you're pulling the image URLs from the API your system should get the fix as
> soon as we patch it on our end. Sorry for the trouble. We'll reply here once
> it's resolved.
>
> Please let us know if you have any other questions.
>
> Thanks,
> Kevin
> <kevincon...@gmail.com>
>
> --
> Kevin Conroy - GlobalGiving.org
> Director of User Experience and Product Development
> Phone: 202-232-5784
> [image: The World is Full of Problems. GlobalGiving is Full of
> Solutions]<http://bit.ly/donate-globalgiving>
> Donate <http://bit.ly/donate-globalgiving> | Share on
> Facebook<http://on.fb.me/share-globalgiving>| Share
> on Twitter <http://bit.ly/tweet-Globalgiving>Add this to your
> emails<http://www.wisestamp.com/apps/causes?utm_source=extension&utm_medium=...>
>
> On Mon, Feb 21, 2011 at 10:11 AM, Abdul Basit <
>
>
>
> abdulbasitna...@googlemail.com> wrote:
> > but there are spaces in the link see like
> > <imagelink size="thumbnail">
> > -
> > <url>
> > *
> >http://cloud.globalgiving.org/pfil/6672/LawrenceTembo with Auntie, June
> > 2009.jpg*
> > </url>
>
> > here is the link
>
> >https://api.globalgiving.org/api/public/projectservice/projects/6672/...
>
> > Can you please confirm what the issue is see
> >http://www.thesafaripartners.com/project-details.html?projId=1168and go
> > to images tab ;(
>
> > On Mon, Feb 21, 2011 at 6:44 PM, Kevin Conroy <kevincon...@gmail.com>wrote:
>
> >> None of the image URLs should contain spaces. On the backend, when
> >> users upload files, we replace spaces with "_" characters. If the API
> >> is returning a URL with spaces, then that's an error with the API that
> >> we need to fix.
>
> >> Can you provide a sample API call that returns the bad URL? I just
> >> checked this project but it seems okay (doesn't return any URLs with
> >> spaces):
>
> >> curl -H "Accept: application/xml" -H "Content-Type: application/xml" -
> >> X GET "https://api.globalgiving.org/api/public/projectservice/projects/
> >> collection/ids?api_key=YOUR_API_KEY_GOES_HERE&projectIds=6672<https://api.globalgiving.org/api/public/projectservice/projects/%0Aco...>
> >> "
>
> >> Thanks,
> >> Kevin Conroy
> >> kcon...@globalgiving.org

Abdul Basit

unread,
Feb 22, 2011, 8:40:08 PM2/22/11
to globalgi...@googlegroups.com
thanks for the update I really appreciate your quick response ;)
Reply all
Reply to author
Forward
0 new messages