I can not get attachments

  • 25 August 2014
  • 1 reply
  • 1 view

Badge +4

Hi,

 

I have made a custom list and smart form to ad some attachments. Everything work fine until I try to get the attachement back. I notice that the problem is in hyperling in browser.

 

The system try to get the attachment on the follows hyperlink:

http://a1spsdocs/sites/test/sites/test/demo/Lists/Pogodbe/Attachments/1/Pogodba1.jpg

 

On the adrress is no document. As you can see there is twice "sites/test"

 

When I manualy correct the hyperlink as you can see:

 

http://a1spsdocs/sites/test/sites/test/demo/Lists/Pogodbe/Attachments/1/Pogodba1.jpg

 

the document appears. I removed /sites/test once.

 

Does anyone has a similar problem?

 

Bst regards

Boris

 

 

 


1 reply

Badge +8

If you run the smartobject tester tool: "C:Program Files (x86)K2 blackpearlBinSmartObject Service Tester.exe"


 


are you able to run the method that retrieves the attachments?  


 


The only thing that comes to mind, is your doubleing up on your parameters to return the attachment.  I.E. you have a URL that defines http://a1spsdocs/sites/test/ then your putting in the list/library in as sites/test/demo/Lists/Pogodbe when you should only need the Pogodbe variable.



David

Reply