attachments and submit_post

Discussion forum for MOD Writers regarding MOD Development.
Locked
hunteroriginal
Registered User
Posts: 73
Joined: Fri Jul 09, 2010 2:11 am

attachments and submit_post

Post by hunteroriginal »

I saw a couple threads on this from a year or two ago, and I know the API has changed quite a bit since then. After some digging of my own it seems that the submit_post does have room in it's data array for $data['attachment_data'] and other similar entries.

So the question is, how would one format the attachment data from a $_POST variable (outside form) to be placed in the data array that is sent to the submit_post function?
hunteroriginal
Registered User
Posts: 73
Joined: Fri Jul 09, 2010 2:11 am

Re: attachments and submit_post

Post by hunteroriginal »

bumpity?
hunteroriginal
Registered User
Posts: 73
Joined: Fri Jul 09, 2010 2:11 am

Re: attachments and submit_post

Post by hunteroriginal »

*frown*
hunteroriginal
Registered User
Posts: 73
Joined: Fri Jul 09, 2010 2:11 am

Re: attachments and submit_post

Post by hunteroriginal »

Is this not in the correct section or something? Where's the help chums? :geek:
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52052
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: attachments and submit_post

Post by Brf »

That attachment data is built by the message_parser. I doubt you would be able to build it externally.
hunteroriginal
Registered User
Posts: 73
Joined: Fri Jul 09, 2010 2:11 am

Re: attachments and submit_post

Post by hunteroriginal »

Surely there's a way to parse a file upload from $_POST and create the attachment data for the submit_post function? (and then display it inline)
User avatar
EAM
Registered User
Posts: 93
Joined: Mon Nov 24, 2008 12:45 pm

Re: attachments and submit_post

Post by EAM »

I would be interested in this also so if you found an easy way, let me know.
Thanks
Ather
Registered User
Posts: 1032
Joined: Fri May 08, 2009 9:42 am
Location: Kingdom of Bahrain
Name: Ather Akber

Re: attachments and submit_post

Post by Ather »

CPL Syed Ather Akbar
Regional Command Southwest
Camp Leatherneck, Afghanistan

My Mods/Snippets
Locked

Return to “[3.0.x] MOD Writers Discussion”