Notifications
Clear all

[Solved] GPX attachment

16 Posts
2 Users
9 Reactions
2,614 Views
Posts: 12
Customer
Topic starter
(@jose-alberto-arruego-maurin)
Member
Joined: 4 years ago

I want to upload an attachment with the "gpx" extension. What should I do? 

I've configured Wordpress to allow it with the plugin "WP Add Mime Types"

Thank you

15 Replies
Posts: 4214
 Tom
Admin
(@tomson)
Famed Member
Joined: 10 years ago

Hi @jose-alberto-arruego-maurin,

Please navigate to Dashboard > Forums > Settings > Addons > Attachments Tab and add/enable the new |gpx extension there:

wpForo Advanced Attachments Addon add new file format
Reply
Posts: 12
Customer
Topic starter
(@jose-alberto-arruego-maurin)
Member
Joined: 4 years ago

I want to upload a .gpx file in a file custom field using wpForo Topic Custom Fields

I've configured Wordpress to allow it with the plugin "WP Add Mime Types" and also in wpForo Advanced Attachments

My Error:

gpx
Reply
1 Reply
 Tom
Admin
(@tomson)
Joined: 10 years ago

Famed Member
Posts: 4214

@jose-alberto-arruego-maurin,

Have you added |gpx extension in the field I mentioned above?

Can I see the screenshot of the extensions field?

BTW, have you tried to upload that file in the native WordPress media Library? Does it allow you to upload?

Reply
Posts: 12
Customer
Topic starter
(@jose-alberto-arruego-maurin)
Member
Joined: 4 years ago

Yes, added

01

excluded in antiSPAM

02

No problem in WP Media library

03

Is that field

04
05

Thanks

Reply
3 Replies
 Tom
Admin
(@tomson)
Joined: 10 years ago

Famed Member
Posts: 4214

@jose-alberto-arruego-maurin,

You've not specified that you're trying to upload the file through a custom topic field. Now all is clear, it seems the Topic Custom Fields addon is not connected to the allowed extensions option. We'll check this and update the addon soon.

Reply
(@jose-alberto-arruego-maurin)
Joined: 4 years ago

Member
Posts: 12

@tomson That's why I opened another post explaining it better. 

I will wait anxiously for the update 😉 

Thanks

Reply
 Tom
Admin
(@tomson)
Joined: 10 years ago

Famed Member
Posts: 4214

@jose-alberto-arruego-maurin,

If you only want to allow uploading the gpx extension, then insert it in the custom field corresponding option:

2021 04 08 10 27 01

Otherwise, you can insert all allowed extensions:

jpg,jpeg,jpe,gif,png,bmp,tiff,tif,ico,asf,asx,wmv,wmx,wm,avi,divx,flv,mov,qt,mpeg,mpg,mpe,mp4,m4v,ogv,webm,mkv,3gp,3gpp,3g2,3gp2,txt,asc,c,cc,h,srt,csv,tsv,ics,rtx,css,htm,html,vtt,dfxp,mp3,m4a,m4b,ra,ram,wav,ogg,oga,mid,midi,wma,wax,mka,rtf,js,class,tar,zip,gz,gzip,rar,7z,xcf,pot,pps,ppt,wri,xla,xls,xlt,xlw,mdb,mpp,docx,doc,docm,dotx,dotm,xlsx,xlsm,xlsb,xltx,xltm,xlam,pptx,pptm,ppsx,ppsm,potx,potm,ppam,sldx,sldm,onetoc,onetoc2,onetmp,onepkg,oxps,xps,odt,odp,ods,odg,odc,odb,odf,wp,wpd,key,numbers,pages,ttf,woff,svg,eot,pdf,gpx

Reply
Posts: 12
Customer
Topic starter
(@jose-alberto-arruego-maurin)
Member
Joined: 4 years ago

Thanks, I already knew it. I deleted it to rule out errors.

Reply
5 Replies
 Tom
Admin
(@tomson)
Joined: 10 years ago

Famed Member
Posts: 4214

@jose-alberto-arruego-maurin,

I'm sorry but I didn't follow you. Have you tried inserting the extension in the custom field option? Does it allow you to upload files with gpx extension now?

Reply
(@jose-alberto-arruego-maurin)
Joined: 4 years ago

Member
Posts: 12

@tomson No, same error

Reply
 Tom
Admin
(@tomson)
Joined: 10 years ago

Famed Member
Posts: 4214

@jose-alberto-arruego-maurin,

Can I see the screenshot of the file custom field options? How have you inserted the extensions in the option?

Reply
(@jose-alberto-arruego-maurin)
Joined: 4 years ago

Member
Posts: 12

@tomson 

Screenshot 2
Reply
 Tom
Admin
(@tomson)
Joined: 10 years ago

Famed Member
Posts: 4214

@jose-alberto-arruego-maurin,

Please put this code in the functions.php files of your current active WordPress theme:

add_filter('mime_types', function ($mime_types){
$mime_types = array_merge( array('gpx' => 'application/octet-stream'), $mime_types );
return $mime_types;
});
Reply
Page 1 / 2
Share:
Scroll to top