Hi,

I am using drupal 5.7 and have integrated with printing services with 'shutterfly' and 'snapgalaxy'. There is a form for shutterfly and XML request for snapgalaxy. The problem is that those images are being uploaded in albums as public are being seen on snapgalaxy but not private images. While both public and private images are being on shutterfly.

1) How it is possible the same image is being seen on shutterfly but not on snapgalaxy while the same URL of the image is there.
2) This URL is being given both printing services is as .....
http://localhost/drupal-5.7_15feb/?q=system/files/images/6901-577668-d.j...
How drupal finds that this image is public or private from this URL and how it is parsed and where it goes after getting this URL.

Is there any solution to send private images on snapgalaxy by drupal.

Thanks in advance.
CRINCH

Comments

tormu’s picture

It's the /system/ part. Try taking that off, so only ?q=files/...

crinch’s picture

Thanks would you like to make it little bit detail.

crinch’s picture

Still waiting for the response.
Thanks

tormu’s picture

I'm not sure what kind of information are you looking for directly.. Drupal checks from the URL somehow if it contains the /system/ part in the start and if it does, it runs the request through at least http://api.drupal.org/api/function/hook_file_download/5. It might be that the modules you have implement that hook also and contain functions named XXXX_file_download - those might contain some access checks that prevent your things from working.
It might also be that I'm giving absolutely useless information and not understanding your problem :P

crinch’s picture

So how I can get the accurate information about this issue.
As I have mentioned in my first thread the URL, how the drupal differentiate from this URL, is this image is public and private.
Actaully I am passing the URLs of the images to the two sites, priting services sites like.....shutterfly, photoworks, snapGalaxy etc.
Shutterfly is providing html form API, whic I fill with required information and submit the form, the page is redirected from my site to shutterfly after submitting the form. The image is shown on shutterfly, either this image is public or private on my site.
On the other hand 'SnapGalaxy' is not providing and HTML API, but I have used the technique as used by Gallery2 to communite with it. But after submitting the form from my site and page is redirected on the 'SnapGalaxy' site but only poublic images are shown ont privite either I am login on my site.
Because I am passing the URLs of the iamge to these 2 sites, therefore trying to understand how Drupal get understand from URLs either this image is public or private. So I could arrange a solution for this, private images should be displayed on the 'snapGalaxy'.
The amazing thing is that all public/private images are being seen on the shutterfly.
May you have got my point/problem/issue and waiting for your response. If anyone drupal expert see this post plz must reply me.

Thanks
CRICH