A man has been arrested at a music festival after assisting security by writing his name and number on a bag of drugs.

Queensland Police released an image of a zip seal bag of MDMA after a canine unit discovered the illicit substance on a reveller at Maroochydore Music and Visual Arts Festival.

The 21-year-old seemed more concerned about losing the narcotics than potentially leading police to its owner.

A man has been arrested at a music festival after assisting security by writing his name and number on a bag of drugs

The Maroochydore Music and Visual Arts Festival featured headliners including Gang of Youths, Allison Wonderland and former Powderfinger front-man Bernard Fanning

Officers from the Wide Bat and Burnett Tactical Crime Squad arrested the Dalby man on Sunday, August 26 at the one-day festival.

In a statement police said they were 'surprised' to find the man's name and number on the bag.

He was arrested and will appear in Maroochydore Magistrates Court on September 29 charged with possessing a dangerous drug.

The festival featured headliners including Gang of Youths, Allison Wonderland and former Powderfinger front-man Bernard Fanning.

The annual event has a proud 'No D***head Policy' and urges any festival goers to point out such individuals to security and police.