i need to alter the default behaviour of sharepoint attachment in such a way that when user click ‘attach file’ the “partAttachment” span get visible which asks user to upload a file.
i want to add another filed of “Title” i.e. the title of the file being uploaded, in the partAttachment span. by doing this i want that sharepoint stores filepath , as it alread does, and title of the file as well. and in the end i want this titile to be stored where sharepoint stores the file path and i should be able to retrive the paths and title when needed. can y ou plz suggest smething.
i already tried to make a custom field using upload control that take title and file from the user but cant understand where to upload the file as it normaly does with default upload system.
You are on a right trail. Try using the Attachments collection of list item.
smth like
then use your own field rendering control to display the attached files in the way you want.
In order to retrieve an attachment for an item you should create a link that points to {ListUrl}/Attachments/{ItemId}/{Filename}
for example http://…/Lists/Tasks/Attachments/1/Devices%202.png