I get a problem to remove physical path in main.js, yesterday I get my result pentest, in my pentest recommend me to remove physical path in main.js (you can find main.js in assets/www/build after you decode your ionic .apk), this is an example of my physical path :
I try to look for an example to remove but I can't find it.
Please anyone help me to remove physical path. .
Thanks
Related
With file_picker, I can't get file's real path or URI from FilePicker.platform.pickFiles(). It only returned something like this
/data/user/0/my_app_dir/cache/file_picker/file
and logged this
I/FilePickerUtils(27005): Caching from URI: content://com.android.providers.media.documents/document/video%3A1519
D/FilePickerUtils(27005): File loaded and cached
at:/data/user/0/my_app_dir/cache/file_picker/file
D/FilePickerDelegate(27005): File path:[com.mr.flutter.plugin.filepicker.FileInfo#705d9ef]
That's not what I want. I just want the real original absolute file path, the file information, regardless of what I'll going to do with the file. So I'm looking for a package that do that or the solution how to manually pick file and get the file path like I could do natively. Thank you in advance.
It's not impossible with native code. It's just package publisher who made it unavailable using it. Follow this to implement file path picker on native code. It works for me.
currently I'm working through the tutorial of building my first app with using the ionicframework with angular and I would like to know where the photos are actually saved on my filesystem? I tried to find out using Filesystem.getURI() but /DATA/1614347102940.jpeg doesn't really help me.
Does anyone know what the absolue filepath on my system is or how I can find out?
Help is much appreciated.
Assuming you're using the Filesystem plugin. The plugin abstracts each operation to a specific special directory on the device. Used like so:
import { Filesystem, Directory } from '#capacitor/core';
Directory.Documents
Directory.Data
Directory.Cache
Directory.External
Directory.ExternalStorage
source code
Yesterday I found this great looking plugin for file and image management for tinymce however I cannot get the files to actually save to the drive. I have tried every commbination I can think of.
responsivefilemanager.com - This plugin.
Anyone used it before and know of the settings I might need?
The plugin sits here: /public_html/cms/app/webroot/js/tinymce/plugins/filemanager
I'm trying to set it up so the uploads go here: /public_html/cms/app/webroot/files/cms
The config file for the plugin has 3 lines to configure for this, these are as follows and as I have set them up:
$base_url="http://domain.com/cms/"; // base url of site. If you prefer relative urls leave empty
$upload_dir = 'app/webroot/files/cms/'; // path from base_url to base of upload folder
$current_path = '../../../files/cms/'; // relative path from filemanager folder to upload folder
Now when I started working this out I would get an error for the plugin saying the root folder doesn't exist so I keep playing with the paths and now I don't get this error but I still cannnot get it to upload the images, everything looks like it works, I get the preview as the image is uploading and a green tick once it's complete then I go back to the files list and the image isn't there. It's not on the server either. I'm wondering if there is a way to debug this and work out what's happening?
Thanks
I ended up getting this to work with the following settings:
$base_url="http://domain.com"; // base url of site.
$upload_dir = '/cms/app/webroot/files/cms/'; // path from base_url to base of upload folder
$current_path = '../../../../files/cms/'; // relative path from filemanager folder to upload folder
Thanks
Try the following settings if you still have not got this sorted out yet:
$base_url="http://www.domain.com/cms"; // base url of site. If you prefer relative urls leave empty --> No trailing slash
// The upload directory will be a dir you have created for the files to be uploaded to, ie: localhost/cms/app/webroot/files/cms --> this file must have write permission.
$upload_dir = '/app/webroot/files/cms/'; // path from base_url to base of upload folder --> write permission (chmod = 755)
$current_path = '../../../../files/cms/'; // relative path from filemanager folder to upload folder (you are missing one "../")
// The thumbs folder located in tinymce/plugins/filemanager/thumbs must also have write permission (chmod = 755)
That should do it
use gsynuhimgupload plugin TinyMCE
http://gsynuh.com/tinymce-simple-image-uploader/136
TinyMCE simple image uploader
Here’s a repost of my TinyMCE image uploader plugin. It used to be on gsynuh-labs.com (but I let this domain go).
please note that this plugin is no longer supported by me – and I’m not responsible for any inconvenience caused by it, it is shared “as-is” and you have to be responsible when using it ie: take care of any possible injection problems/security problems in your own site’s context.
I’m not interested in expanding it myself as I was only looking for a very minimal image uploading plugin for myself but If you are going to expand on it, I can list your version on this page if you want, just contact me.
—
I am trying to create links in my README.md that link to example code using a relative path, as opposed to the absolute path I am using now. For example, in the markdown file, if I use this:
[someLabel](https://github.com/username/repoName/somePathTo/myExampleCode)
It works no problem. But I would like to link it up using something like this:
[someLabel](username/repoName/somePathTo/myExampleCode)
This does not link up, as it gives me the ol' 404 not found error. Is there a way to link my examples on Github to my README using a relative path?
They seem to have changed this since Aug 8 '12, so now all I had to do to reference my pdf file inside the Documentation folder (which is in my project's root) is this:
[file.pdf](Documentation/file.pdf)
So, no need to add blog/master part anymore. Hope it helps new people browsing this question.
Try leaving off the username/ part. A relative link to repoName/blob/master/whatever on a page at /username/repoName should take you to /username/repoName/blob/master/whatever, which is what you want, I think.
Here is a nuance. A leading slash changes the meaning of a link.
[someLabel](/repository/relative/link.txt)
[someLabel](directory/relative/link.txt)
I recently found out that the way you can use relative path in README.md is:
[file.pdf](/Documentation/file.pdf)
where Documentation is a folder at the root of my repository
I have search in google about your question and found your question and after reading all answers, I found another way we can add relative path in README.md file by this way,
[someLabel](./somePathTo/myExampleCode)
Add the leading ./ character when the path is pointing to a parent folder.
It will not give '404 not found error' in Github.
I know questions related to Kal Calendar has been asked multiple times in Stackoverflow.
But i am stuck badly. Please share your views on this. So...
I have followed all instructions in https://github.com/klazuka/Kal but as soon as i run my app it says Kal.h no such file or directory error.
I think i am doing wrong in header search path. But i am adding relative path from my project's directory to the "Kal/src" directory.
On double click to header search path I check mark on recursive and then adding "/Volumes/Development/Imp/Astro 4Feb /klazuka-Kal-b2e164c/src" in the path field.
What's wrong in it ?
Please help
Look at their example. They use ../../src and I don't see $(SRCROOT) there, so I guess they are not pointing the header search path as they said in the readme file. You may just point the header path where you have placed their source (Kal/src) and make it relative your project. Hope this helps.
You didn't set root directory. Make it relative to your project.